In Rails 3.x if you test the assets pipeline on your dev machine using
(bundle exec) rake assets:precompile
make sure you run
(bundle exec) rake assets:clean
after you're done. You may run into strange errors in the assets (like JS) if you don't. This can be particularly irritating if you precompile assets manually and then forget about them.