I have a problem with js files being compiled in development.
I have an application.js file that includes multiple other files like this:
//=require_tree .
the files in the directory are
app/assets/javascripts/user_row.coffee
app/assets/javascripts/index.coffee
Whenever I make a change to one of those files a corresponding js file gets created in the app/assets/javascripts directory, so I change user_row.coffee and I get:
app/assets/javascripts/user_row.js
This is in development mode, with the default asset configuration (I haven’t changed development.rb from what the rails generator creates).
If I change the user_row.coffee file again, it gets overlooked and the already existing js file gets included by application.js.
What I don’t understand are why these js files being created in the app/assets/javascript directory rather than under tmp/cache/…
Any ideas?
This turned out to be an issue with nodes v0.8.9. I’m using node as the javascript runtime, and after updating from v0.8.9 to v0.8.16, the problem went away.