问题
Such a strange problem, but I deployed to production, and it won't update with my new CSS changes because of a caching issue.
I tried this :
bundle exec rake assets:precompile
But that returns :
rake aborted!
Don't know how to build task 'assets:precompile'
Ah, so I must be missing the sprockets in my application.rb perhaps. I tried everything on this link : How to build task 'assets:precompile' . And every solution caused a load error for not finding the items that it pointed out.
What should I do?
Rails. 3.0.5
回答1:
try clearing your browser cache.
this blog post was informative for me: http://blog.55minutes.com/2012/02/untangling-the-rails-asset-pipeline-part-1-caches-and-compass/
来源:https://stackoverflow.com/questions/9749008/how-can-i-reset-my-asset-pipeline-in-rails