Skip to content

Instantly share code, notes, and snippets.

@igbanam
Created September 23, 2011 09:32
Show Gist options
  • Save igbanam/1237031 to your computer and use it in GitHub Desktop.
Save igbanam/1237031 to your computer and use it in GitHub Desktop.
Integrate Compass with Rails 3.1 in steps
# 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