摆脱 rails 中的 scaffold.css [英] Getting rid of scaffold.css in rails
问题描述
我想摆脱默认的 css 样式表 app/assets/stylesheets/scaffold.css.scss 但是当我删除它并运行服务器时,样式似乎仍然存在.
I want to get rid of the default css stylesheet app/assets/stylesheets/scaffold.css.scss but when I delete it and run the server the styles still seem to be there.
推荐答案
检查您的公共(或 public/assets )文件夹.您可能正在提供来自 public/stylesheets (或 public/assets )的预编译"版本.我认为您可以 rake assets:precompile
来更新您的文件.依稀记得,当我使用其他人配置了项目的代码时,不得不做这样的事情.
Check out your public ( or public/assets ) folder. You may be serving a 'precompiled' version from public/stylesheets ( or public/assets ). I think you can rake assets:precompile
to update your file. Vaguely remember having to do something like this when I was working with some code that someone else had configured the project.
这篇关于摆脱 rails 中的 scaffold.css的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!