Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure Ruby on Rails to generate .js not js.coffee [duplicate]

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.

like image 330
Stefan Dunn Avatar asked Apr 05 '13 14:04

Stefan Dunn


1 Answers

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
like image 125
Jeff Paquette Avatar answered Nov 20 '22 04:11

Jeff Paquette