2011-10-03 82 views
1

我最近升级到了rails 3.1,并在我的rails 3.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; 
} 

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

我猜测需要一些文件需要生成的轨道来访问波旁图书馆,不是吗?

任何帮助或线索,我将非常感激

+0

还试图运行'耙波旁:install'但无差异 – alik

+0

任何帮助或线索将不胜感激 – alik

回答

1

阿利克,可以尝试使用在你的Gemfile宝石的版本号。 https://rubygems.org/gems/bourbon

宝石 “波旁”, “〜> 0.2.1”

耙波旁:安装不会帮助你在轨道上3.1+

+0

这工作,谢谢! – alik

相关问题