sprockets-rails: Fail to run rails app 4.2.5 with sprockets-rails 3.0.0
https://github.com/rails/rails/issues/22661
Ruby 2.2.4 Rails 4.2.5
with sprockets-rails 3.0.0 rails application fail to run
I add in Gemfile:
gem 'sprockets-rails', '< 3.0.0'
then ALL WORK!
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 52 (15 by maintainers)
I know this issue is long closed, but I’m adding a comment for anyone who comes across this down the road (like I did).
Applies to
sprockets-rails >=3.*
.If the image assets from your engine are not loading (despite what Rails says about “all non-JS/CSS in app/assets folder are already added”), and you’re getting the “Asset was not declared to be precompiled in production” error, you need to add this to
my_engine/lib/my_engine/engine.rb
:Or something along those lines, depending on how your image assets are structured.
@rafaelfranca Without
rails s