我最近升級到了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?我究竟做錯了什麼?
我猜測需要一些文件需要生成的軌道來訪問波旁圖書館,不是嗎?
任何幫助或線索,我將非常感激
還試圖運行'耙波旁:install'但無差異 – alik
任何幫助或線索將不勝感激 – alik