私は以下を使用して新しいrailsプロジェクトを開始しましたgemfile
:
source 'https://rubygems.org'
gem 'rails', '3.2.8'
group :development do
gem 'sqlite3'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'compass-rails'
gem 'susy'
gem 'sassy-buttons'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'devise'
次に@import "susy";
、application.css.scss
ファイルにアクセスしようとしましたが、次のエラーで失敗します。
Sass::SyntaxError in Devise/sessions#new
Showing /Users/ashleyconnor/Development/rails/myapp/app/views/layouts/application.html.erb where line #5 raised:
File to import not found or unreadable: susy.
Load paths:
Sass::Rails::Importer(/Users/ashleyconnor/Development/rails/myapp/app/assets/stylesheets/application.css.scss)
/Users/ashleyconnor/Development/rails/myapp/app/assets/stylesheets
/Users/ashleyconnor/.rvm/gems/ruby-1.9.3-p194@myapp/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Users/ashleyconnor/.rvm/gems/ruby-1.9.3-p194@myapp/gems/compass-0.12.2/frameworks/compass/stylesheets
/Users/ashleyconnor/.rvm/gems/ruby-1.9.3-p194@myapp/gems/compass_twitter_bootstrap-2.0.3/stylesheets
/Users/ashleyconnor/.rvm/gems/ruby-1.9.3-p194@myapp/gems/sassy-buttons-0.1.4/stylesheets
Compass::SpriteImporter
(in /Users/ashleyconnor/Development/rails/myapp/app/assets/stylesheets/application.css.scss)
インポートsassy-buttons
は機能しますがsusy
、何らかの理由で機能しません。