Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.