Rails 3.1 asset pipeline

Hi,

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.

Hi!

I’m a newbie, but I found this article yesterday (someone retweeted it to me).

Take a look, maybe it would be useful:

http://merbist.com/2011/08/30/deploying-a-rails-3-1-app-gotchas/

Best Regards,

Everaldo

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