ErrorLocator
Open erroneous code in your favorite editor by clicking exception call stack in browser. Gem for Ruby on Rails.
Usage:
-
setup $EDITOR variable. For example:
#.bash_login export EDITOR=geany
-
Add “gem ‘error-locator’, :group => :development” to your Gemfile
-
Add “post ‘/error-locator’ => ErrorLocator if Rails.env.development?” to your routes
-
bundle install
-
rails s
-
Open browser, when found error click on the line with error.
Currently supported: Application and Full Traces. Currently supported editors: Sublime Text 2, Geany. Editor must open file with line number: ‘dir/filename.rb:75’