Created
September 23, 2011 09:32
-
-
Save igbanam/1237031 to your computer and use it in GitHub Desktop.
Integrate Compass with Rails 3.1 in steps
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
# These are the steps I took to integrate Compass with Rails 3.1 and the asset pipeline. | |
# 1. Add Compass to your Gemfile under the assets group | |
# Gemfile | |
group :assets do | |
gem 'compass' | |
# alongside other gems needed | |
end | |
# 2. Configure the load path for SASS | |
# config/initializers/sass.rb | |
Rails.configuration.sass.tap do |config| | |
config.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment