3

这里是我的application.css:Rails的@import指南针没有找到

/* 
* 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"; 

罗盘复位获得一个404:

GET http://0.0.0.0:3000/assets/compass/reset 404 (Not Found) 

BTW,运行的Rails 3.2.3。谢谢!

+1

你有没有在你的Gemfile中包含指南针宝石? – kclair

+0

是。也运行捆绑。 – botbot

+0

我从来没有多少运气向清单文件本身添加东西。您是否尝试将@import语句移动到树中的其他文件? – kclair

回答

5

重命名application.cssapplication.css.scss

+0

不要忘记重新启动Web服务器。 –

+0

删除sprockets'require'指令也是一个好主意(即删除'application.css'文件中的所有'* = require something'。 – richsinn

+0

omg我觉得很愚蠢。 – ahnbizcad