I have just started learning Rails, is it required for me to learn CoffeeScript as well? Where it becomes useful?
asked Jun 19, 2012 at 6:08
eomeroff
10k30 gold badges102 silver badges143 bronze badges
-
Very open question, not sure if that conforms to the normal format here. Short answer is: No, you have not.mliebelt– mliebelt2012年06月19日 06:12:06 +00:00Commented Jun 19, 2012 at 6:12
-
1coffeescript is not required to learn for Rails but good if you do. if you check their website (coffeescript.org) you will see their examples and can learn how it will be useful for you.HungryCoder– HungryCoder2012年06月19日 06:13:54 +00:00Commented Jun 19, 2012 at 6:13
1 Answer 1
You do not need to know coffeescript to learn rails. While Coffeescript is the default as of rails 3.1 you can change it to use pure javascript instead. To do so:
- Comment out gem "coffee-script" in your Gemfile
- Use .js instead of .js.coffee for your javascript files
answered Jun 19, 2012 at 6:27
Dty
12.3k6 gold badges46 silver badges61 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-coffee