Last week we saw how to enable jQuery support in your Rails 3.0.x app for all your UJS needs.
But how jQuery-ready is RubyMine?
Still, as reported in issue RUBY-5026, RubyMine's autocomplete cannot automagically talk jQuery. By default, the suggestions will be based on Prototype.js; furthermore, if you --skip-prototype, they will be even more limited:
Enabling support for jQuery
At this point we have two options for type:
- Release: the minified version of the code. [jquery-1.5.1.min.js]
- Make sure to Apply the changes before continuing, then go to Usage Scope and enable the library for the current project:
- Finally, both jQuery code completion and navigation are working as expected.
Update: Thanks to the JetBrains' Easter Sale, you
can could get RubyMine for 30% off.