Search code examples
jqueryrubymine

RubyMine support for jQuery


I'm using RubyMine 3.1 to develop a Rails3 app and today I switched from Prototype to jQuery for my UJS needs.

After customizing everything using this example and restarting RubyMine, all the auto-complete suggestions and the code inspector errors are still being based on Prototype.

What else should I do to get the JavaScript code completion & Co. tailored to jQuery?

(related to: Remove Prototype support from RubyMine: how to?)


Solution

  • This article to enable jQuery code completion in RubyMine describes these steps:

    1. go to Settings, then JavaScript Libraries and add a new library;
    2. in Usage Scope, enable the library for the current project;
    3. done!