Skip to content

Link rails error page links and rails-footnotes with RubyMine.

Notifications You must be signed in to change notification settings

pehrlich/rubymine_heaven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RubyMine Heaven

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)

Getting started

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

    * save this file as an Application (for instance to /Applicaions folder)
  • 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.

Usage

In your Gemfile add:

gem 'rubymine_heaven'

that's all...

Prerequisites

Bugs and Feedback

If you discover any bugs, please send an e-mail to [email protected]. Positive feedback is fine too!

How can you help?

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.

References

https://rubygems.org/gems/rubymine_heaven

License

MIT License.

About

Link rails error page links and rails-footnotes with RubyMine.

Resources

Stars

Watchers

Forks

Packages

No packages published