波本威士忌 - 导入未找到或不可读的文件:波本威士忌

时间:2011-10-03 21:18:13

标签: ruby-on-rails ruby-on-rails-3.1 stylesheet sass

我最近升级到rails 3.1并在我的rails 3.1 app中安装了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;
}

任何想法如何加载Boubon?我做错了什么?

我猜测需要为rails访问波本图库需要生成一些文件,不是吗?

非常感谢任何帮助或线索

1 个答案:

答案 0 :(得分:2)

alik,尝试在gemfile中指定gem版本号。 https://rubygems.org/gems/bourbon

gem“bourbon”,“〜> 0.2.1”

rake bourbon:安装不会帮助你在rails 3.1 +