问题
I'm using RubyMine 3.1 to develop my Rails3 app and today I switched from Prototype to jQuery for my UJS needs.
Customized everything using this example and restarted RubyMine, yet all the auto-complete suggestions and the code inspector errors are still being based on Prototype.
How can I remove all the JavaScript code completion & Co. tailored to Prototype?
(related to: RubyMine support for jQuery)
回答1:
When creating a new Rails application, pass the --skip-prototype
flag, e.g.:
$ rails new myCommentsApp --skip-prototype
This way Prototype will not be bundled with your app and RubyMine will also not autocomplete based on Prototype.
Here you can also find an efficient step by step approach to switching the JS library in your Rails app.
来源:https://stackoverflow.com/questions/5239297/remove-prototype-support-from-rubymine-how-to