Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Trying to get Compass working with the Rails 3.1 asset pipeline
gem 'sass-rails', :git => ''
gem 'compass', :git => '', :branch => 'rails31'
config.assets.prefix = "myAppPrefix/assets"
config.sass.load_paths ||= []
config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
config.compass.images_dir = "public/images"
project_type = :rails
http_path = "/myAppPrefix"
css_dir = "public/myAppPrefix/stylesheets/"
sass_dir = "app/assets/stylesheets"
// in app/assets/stylesheets/screen.css.scss
@import "compass";
@import "reset.css.scss";
@import "mixins/utilities.css.scss";

I wrote an article that might help some too.

Use Compass Sass Framework Files With The Rails 3.1.0.rc5 Asset Pipeline

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