Rails资产未更新 [英] Rails assets don't get updated

查看:55
本文介绍了Rails资产未更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Rails 3.1应用程序,由于某种原因,当我更改CSS时,更改没有显示出来.我做了bundle exec rake assets:precompile,它曾经帮助过一次,但现在无论如何我都坚持使用旧的CSS.

I have a Rails 3.1 app and for some reason when I change CSS, the changes don't show up. I did bundle exec rake assets:precompile and it helped once, but now I am stuck with the old CSS no matter what.

推荐答案

现在已经对您的资产进行了预编译,因此您需要使用以下内容清理它们

As your assets are now precompiled you need to clean them with the following

bundle exec RAILS_ENV=development rake rails_group=assets assets:clean

这篇关于Rails资产未更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆