这是我的 application.css:
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*/
@import "compass/reset";
在 compass 重置上获得 404:
GET http://0.0.0.0:3000/assets/compass/reset 404 (Not Found)
顺便说一句,运行 Rails 3.2.3。谢谢!
最佳答案
将 application.css
重命名为 application.css.scss
。
关于ruby-on-rails - 找不到 Rails @import compass ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10626263/