Created
June 17, 2011 23:03
-
-
Save jamesarosen/1032551 to your computer and use it in GitHub Desktop.
Trying to get Compass working with the Rails 3.1 asset pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'sass-rails', :git => 'https://github.com/rails/sass-rails.git' | |
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project_type = :rails | |
http_path = "/myAppPrefix" | |
css_dir = "public/myAppPrefix/stylesheets/" | |
sass_dir = "app/assets/stylesheets" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in app/assets/stylesheets/screen.css.scss | |
@import "compass"; | |
@import "reset.css.scss"; | |
@import "mixins/utilities.css.scss"; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/