we\'ve just upgraded to Rails 3.2.5 from Rails 3.0.7 and using the assets-pipeline compilation on the fly for the staging server, but some times we face this exception !
Maybe it helps to:
RAILS_ENV=production rake assets:clean
Restart your webserver / e.g.
service apache2 restart
Then:
RAILS_ENV=production rake assets:precompile