I had set in my production.rb
this:
config.assets.compile = true
But the I'm still getting this error while using images recently uploaded by user
ActionController::RoutingError (No route matches [GET] "/assets...
What am I doing wrong here?
I've tested this running with passenger on the server on production environment and I've tested this this on production with WEBrick
on my local machine.
===== SOLVED =======
Fixed my situation with this settings on my production.rb
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true
# Generate digests for assets URLs
config.assets.digest = false
It's normal to me if you don't serve_static_assets :
config.serve_static_assets = false
This behavior is the default.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.