我有一个全新的带有 Gemfile 的 Rails 4 应用程序:
#default gems
gem 'compass-rails'
gem 'zurb-foundation'
gem 'thin'
使用 style.scss:
@import "compass";
@import "foundation/variables";
$red: rgb(255,0,1);
$green: rgb(51,153,50);
$body-bg: #F4F4F4;
$body-font-color: #7B7B7B;
$primary-color: #999;
$secondary-color: #0CC;
$dark-color: #393939;
$block-container-border-color: rgb(218,218,218);
$block-container-shadow-color: rgb(208,208,208);
// main background
html{
background:image-url('bckg.jpg');
}
body{
width:1000px;
margin:0 auto;
@include box-shadow(0px 0px 32px -5px #000);
}
我有这个错误:
Showing /Users/quatermain/Projects/rails40/app/views/layouts/application.html.erb where line #18 raised:
File to import not found or unreadable: compass.
Load paths:
/Users/quatermain/Projects/rails40/app/assets/images
/Users/quatermain/Projects/rails40/app/assets/javascripts
/Users/quatermain/Projects/rails40/app/assets/stylesheets
/Users/quatermain/Projects/rails40/vendor/assets/javascripts
/Users/quatermain/Projects/rails40/vendor/assets/stylesheets
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/turbolinks-1.2.0/lib/assets/javascripts
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/jquery-rails-3.0.1/vendor/assets/javascripts
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/coffee-rails-4.0.0/lib/assets/javascripts
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/zurb-foundation-4.2.3/scss
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/zurb-foundation-4.2.3/js
(in /Users/quatermain/Projects/rails40/app/assets/stylesheets/style.scss:5)
Rails 4 目前不支持compass-rails
吗?