开发者

Remove Prototype support from RubyMine: how to?

开发者 https://www.devze.com 2023-02-15 20:08 出处:网络
I\'m using RubyMine 3.1 to develop my Rails3 app and today I switched from Prototype to jQuery for my UJS 开发者_StackOverflow中文版needs.

I'm using RubyMine 3.1 to develop my Rails3 app and today I switched from Prototype to jQuery for my UJS 开发者_StackOverflow中文版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)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号