Skip to content

Instantly share code, notes, and snippets.

@jamesarosen
Created June 17, 2011 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesarosen/1032551 to your computer and use it in GitHub Desktop.
Save jamesarosen/1032551 to your computer and use it in GitHub Desktop.
Trying to get Compass working with the Rails 3.1 asset pipeline
gem 'sass-rails', :git => 'https://github.com/rails/sass-rails.git'
gem 'compass', :git => 'https://github.com/chriseppstein/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";
...
@metaskills
Copy link

I wrote an article that might help some too.

Use Compass Sass Framework Files With The Rails 3.1.0.rc5 Asset Pipeline
http://metaskills.net/2011/07/29/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