Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using plain javaScript instead of coffeeScript

Does my ruby on rails app have to use coffeeScript or could I can I Just use plain javaScript?

like image 466
Samuel Avatar asked Dec 19 '13 16:12

Samuel


1 Answers

You need to ensure not having the same filename both in javascript and coffeescript.

For example: having both the files

assets/javascripts/application.coffee  
assets/javascripts/application.js  

will only get the coffeescript loaded.

like image 61
weshouman Avatar answered Oct 04 '22 09:10

weshouman