the Rails Guides says:
If there are missing precompiled files in production you will get an
Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPrecompiledError
exception indicating the name of the missing file(s).
I do execute:
bundle exec rake assets:precompile
however I don’t get any error, and my javascript file is missing in the manifest.yml. Also it’s not appearing in public/assets, so the problem is only on production.
I have in the application.js
//= require formalize/jquery-formalize
What am I missing?
Thanks.
Actually two things needed to do:
as described here, and
for local production testing when using
of course using
however in my case – without config.assets.precompile this would have no effect since the manifest didn’t contain any reference to my javascript file.
HTH.