Search code examples
ruby-on-rails-3.1coffeescript

How can I completely disable CoffeeScript in a Rails 3.1 app?


At the moment when I generate a new controller, Rails also generates a .js.coffee file for the controller as well. As I don't use CoffeeScript I want Rails instead generate .js files for me.

Is it enough to comment out the coffee-rails gem to completely disable CofeeScript in a Rails 3.1 app?


Solution

    1. Comment out gem "coffee-script" in your Gemfile
    2. Use .js instead of .js.coffee for your javascript files