Last Updated: February 25, 2016
·
9.409K
· allolex

Clean out your Rails assets in development

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.

Have a fresh tip? Share with Coderwall community!

Post
Post a tip