0

私は RubyMine 3.1 を使用して Rails3 アプリを開発していますが、今日は UJS のニーズに合わせてプロトタイプから jQuery に切り替えました。

この例を使用してすべてをカスタマイズし、RubyMine を再起動しましたが、すべてのオートコンプリートの提案とコード インスペクターのエラーはまだプロトタイプに基づいています。

Prototype に合わせたすべての JavaScript コード補完 & Co. を削除するにはどうすればよいですか?

(関連: RubyMine による jQuery のサポート)

4

1 に答える 1

0

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.

于 2011-04-25T14:18:09.817 に答える