4

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:

  • Rails Version 3.1.0

Already looked at and tried:

Cœur
  • 37,241
  • 25
  • 195
  • 267
moonglum
  • 801
  • 5
  • 13

1 Answers1

7

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?

Frederic
  • 2,293
  • 18
  • 22