Remove Prototype support from RubyMine: how to?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 12:52:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!