我最近升级到了Rails3.1,还在我的Rails3.1应用程序中安装了Bourbon gem。将这段代码添加到我的gemfile中:gem 'bourbon'并运行$ bundle install,但在我的application.css.scss中添加@import "bourbon";行时,我得到以下错误:
File to import not found or unreadable: bourbon.
Load path: Sass::Rails::Importer ...这是我的application.css.scss文件
/*
* This is a manifest file that'll automatically include all the stylesheets available in this directory
* and any sub-directories. 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
*/
@import "bourbon";
@import "scaffold.css.scss";
.hidden{
display:none;
}你知道怎么加载布邦吗?我做错了什么?
我猜rails需要生成一些文件才能访问bourbon库,不是吗?
如有任何帮助或线索,我们将不胜感激
发布于 2011-10-05 22:09:44
alik,尝试在gem文件中指定gem版本号。https://rubygems.org/gems/bourbon
宝石“波旁”,"~> 0.2.1“
rake波旁酒:在rails 3.1+上安装对你没有帮助
https://stackoverflow.com/questions/7640768
复制相似问题