Ruby-on-rails – Configure Ruby on Rails to generate .js not js.coffee

coffeescriptconfigurationruby-on-railsruby-on-rails-3

Is there a way to configure ruby on rails to generate .js files and not .js.coffee when generating a new controller. I don't want to use CoffeeScript, and it's annoying having to refactor all my files.

Best Answer

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

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