Possible Duplicate:
Rails 3.1 asset precompilation
I've been strugling lately with an application I'm building using Rails 3.1 and Ruby 1.9.2.
My problem is that sometimes I add a specific JS file to the system, but when I push it into Heroku I'd see the "yourfile.js isn't precompiled" error.
I solve this by adding my file into config.assets.precompile
on my application.rb
file. But is there a way to automate this process? I currently have a lot of js files, and might add a lot more. Any gems available for this? Maybe some configuration I'm missing?