Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Forked from mislav/Gemfile
Created August 31, 2011 21:57
Show Gist options
  • Star 86 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
  • Save chriseppstein/1184843 to your computer and use it in GitHub Desktop.
Save chriseppstein/1184843 to your computer and use it in GitHub Desktop.
How to integrate Compass with Rails 3.1 asset pipeline

This gist is no longer valid. Please see Compass-Rails for instructions on how to install.

@bensie
Copy link

bensie commented Dec 22, 2011

This was fixed in rails/sass-rails@f8faec5

@ntreadway
Copy link

Not sure is anyone is running an issue upgrading from Rails 3.0 to 3.1.3 with Compass v0.12.alpha.4

File to import not found or unreadable: compass/reset.
Load path: Sass::Rails::Importer

Add this to your application.rb:

 config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"

Will fix this issue.

@oz
Copy link

oz commented Jan 20, 2012

FWIW, with rails 3.2.0, there is no need to add sprockets to your Gemfile, and the following assets group works fine:

group :assets do
  gem 'sass-rails', '~> 3.2'
  gem 'coffee-rails', '~> 3.2'
  gem 'uglifier', '~> 1.0'
  gem 'compass', '~> 0.12.alpha'
end

@chriseppstein
Copy link
Author

This gist is no longer valid. Compass v0.12 release candidate is out and should make rails integration a snap. Please see https://github.com/compass/compass-rails for details.

@bensie
Copy link

bensie commented Jan 31, 2012

@chriseppstein thanks for all your work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment