I ran into problems with Heroku, showing that my "places.js" was not precompiled, although im works on the cedar stack, and during slug compilation it starts the task of pre-breaking the rake. so I tried to run it locally using rake assets:precompile RAILS_ENV=production , and indeed, the rails did not precompile my resource /app/assets/javascripts/places.js.coffee.erb .
my production.rb uses the default rails 3.1 configuration, and I even tried to remove .erb from the asset, but to no avail.
I also thought that since my places.js.coffee.erb resource is NOT included in the sprockets manifest (I manually include it in my application), it may only precompile the assets in the manifest. Requiring this in the manifest did not work either.
only my application.js.coffee and `application.css are precompiled (with and without digest).
The only problem I discovered is maybe a bad regex used to match assets, but the default value (?:\/|\\|\A)application\.(css|js)$ does not match my asset therefore it should be included.
I am not sure how to fix the problem here. all pretty much the default. any thoughts on what could be happening here?
source share