the Rails Guides says:
If there are missing precompiled files in production you will get an Sprockets::Helpers::RailsHelper::AssetPaths::AssetNotPre
Try just:
rake assets:precompile
I've had similar issues and that has worked.
You can also delete the contents of the /public/assets
directory and try running it again.
Actually two things needed to do:
config.assets.precompile += %w( *.js *.css )
as described here, and
config.serve_static_assets = true
for local production testing when using
rail s
of course using
rake assets:precompile
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.