开发者

In rails 3.1 how does this coffee script effect things? Is it easy to opt out of it?

If I upgrade my exis开发者_如何学Pythonting rails 3 app to 3.1, will it cause any issues with coffeescript?

How can I opt out and have things run as 'normal'?


You won't be affected, as all .js files are left alone. Only .coffee files are parsed by CoffeeScript.

Thus, you can experiment with CoffeeScript while at the same time leaving all existing javascript code alone.


To turn coffescript thing 'off' just delete or uncomment gem 'coffee-script' line in Gemfile.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜