Skip to content

Instantly share code, notes, and snippets.

@jacquescrocker
Created June 23, 2011 16:23
Show Gist options
  • Save jacquescrocker/1042904 to your computer and use it in GitHub Desktop.
Save jacquescrocker/1042904 to your computer and use it in GitHub Desktop.
compass hack for rails 3.1
gem 'sass-rails', :git => "https://github.com/rails/sass-rails.git"
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'
# config/initializers/sass.rb
# THIS IS NO LONGER NEEDED (thanks @heisenthought!)
# require 'sass'
# require 'sass/plugin'
# module Compass
# end
# require 'compass/browser_support'
# require 'compass/configuration'
# require 'compass/sass_extensions'
#
# Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
# load_paths << "#{Rails.root}/vendor"
# end
@mchung
Copy link

mchung commented Jun 28, 2011

I'm using the same gem/branch you are:

gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'

I haven't needed a custom compass load path (I noticed you're using vendor); I don't have an answer.

@jacquescrocker
Copy link
Author

ah, cool. yeah i dont use vendor either. sounds like your approach should work for me as well, i'll switch to that

@mchung
Copy link

mchung commented Jun 28, 2011

Let me know if you run into any edge cases or weird observations.

@jacquescrocker
Copy link
Author

seems to be working great. much simpler thanks!

@bcardarella
Copy link

Whoa, much better :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment