This is a common question in here, but none of the solutions fixed my problem, so here it goes:
I am adding ace.js to my rails4 app, So what I did was
-
It is solved by adding :
config.assets.precompile += %w( index.js )
to config/application.rb. (not config/environments/production.rb)
config/application.rb
config/environments/production.rb
Tested in Rails 4.0 beta1.