Reputation: 786
We just deployed a Rails 3.1 app using the new asset pipeline. In Development everything looks fine, but in production all asset-images are missing. When deploying we followed the Ruby on Rails Edge Guide. As an example, a simple code snippet from our app:
asset_path "favicon.png", "images"
This generates in production:
/assets/favicon.png
But the fingerprint is missing (and therefore it is a deadlink on production). We already tried it without the "images", with image_tag
instead. Nothing is working.
Additional Information:
Already looked at and tried:
Upvotes: 4
Views: 819
Reputation:
The recent Railscast Episode #282 covered switching assets from 3.0 to 3.1 with asset pipeline. Have you already tried setting config.assets.digest = true
in config/environments/production.rb?
Upvotes: 7