从 RubyMine 中删除 Prototype 支持:如何? [英] Remove Prototype support from RubyMine: how to?

查看:34
本文介绍了从 RubyMine 中删除 Prototype 支持:如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 RubyMine 3.1 来开发我的 Rails3 应用程序,今天我从 Prototype 切换到 jQuery 以满足我的 UJS 需求.

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

使用 此示例 并重新启动 RubyMine,但所有自动完成建议和代码检查器错误仍然基于 Prototype.

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.

如何删除所有 JavaScript 代码补全 &Co. 为 Prototype 量身定制?

How can I remove all the JavaScript code completion & Co. tailored to Prototype?

(相关于:RubyMine 对 jQuery 的支持)

推荐答案

在创建新的 Rails 应用程序时,传递 --skip-prototype 标志,例如:

When creating a new Rails application, pass the --skip-prototype flag, e.g.:

$ rails new myCommentsApp --skip-prototype

这样 Prototype 不会与您的应用捆绑在一起,RubyMine 也不会基于 Prototype 自动完成.

This way Prototype will not be bundled with your app and RubyMine will also not autocomplete based on Prototype.

在这里您还可以找到一种有效的分步方法切换 Rails 应用中的 JS 库.

Here you can also find an efficient step by step approach to switching the JS library in your Rails app.

这篇关于从 RubyMine 中删除 Prototype 支持:如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆