This gem does 2 things:
- connects stack trace on rails error page to rubymine (when you click on stack trace line in browser, RubyMine will open appropriate file on the line which caused the error
- in similar manner it connects links from footnotes (if present) to RubyMine (https://github.com/josevalim/rails-footnotes)
You need to perform some steps (one time) before first usage:
- Create command line launcher for RubyMine (Tools / Create Command-line launcher for RubyMine 4 EAP)
- Create protocol handler in AppleScript Editor
- start the AppleScript Editor
- paste this code into the editor:
on open location this_url
do shell script ("mine_handler '" & this_url & "'")
end open location
- link protocol "x-mine" to application created in previous step (You can use MisFox, MoreInternet or RCDefaultApp for it)
- in MisFox select Protocol Helpers and add new protocol with name "x-mine" a chose application created in AppleScript editor as it's handler.
In your Gemfile add:
gem 'rubymine_heaven'
that's all...
- Mac OS X
- IntelliJ RubyMine (http://www.jetbrains.com/ruby/index.html)
- Rails >= 3.2 (for older Rails please use version 0.0.2)
If you discover any bugs, please send an e-mail to petr@petrcervinka.cz. Positive feedback is fine too!
If someone knows how to eliminate the need to create ApplScript handler (or how to create this handler programaticaly),
or how to register new protocol programitacly, please let me know.
https://rubygems.org/gems/rubymine_heaven
MIT License.