I just upgraded my existing rails 3.0.10 app to 3.1 where I wanted to
try the new asset pipeline.
Everything seemed to work fine in development, all the assets are served
correctly.
But when I wanted to test in production, the paths to the assets changed
back to the old format without the digest ( /images/image.png) . Even
though I precompiled the assets.
The asset pipeline is enabled and everything runs on the default rails
3.1 settings.
Anyone has a clue on what the problem might be? I ran rake rails:update
several times to make sure I didn't miss anything.
But when I wanted to test in production, the paths to the assets changed
back to the old format without the digest ( /images/image.png) . Even
though I precompiled the assets.
You need to update /congig/environments/production.rb to reflect the
3.1 one.
To be more specific, — You need to add config.assets.digest = true