Rails: Sprockets::Rails::Helper::AssetNotPrecompiled in development
Neither of these worked for me (rails-5.0.7, sprockets-3.7.2, sprockets-rails-3.2.1):
config.assets.debug = false
config.assets.unknown_asset_fallback = true
But this did:
config.assets.check_precompiled_asset = false
//= link_directory ../javascripts .js
adding this to
app/assets/config/manifest.js
worked for me (working on rails 6)
Changing assets.debug
did not work for me in Rails v5.1.5. I had to use this option:
config.assets.unknown_asset_fallback = true