Skip to content

compass and sass-rails not working in 3.1.0.rc2?! #3

@mugwump

Description

@mugwump

I'm trying to get compass to run with 3.1.0.rc2/sass-rails: Previously (rails 3.1.0.rc1), I had a sass.rb in config/initializers, that made the compass-framework-scss available like this:

Sass::Engine::DEFAULT_OPTIONS[:load_paths].tap do |load_paths|
  load_paths << "#{Rails.root}/app/assets/stylesheets"
  load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
  load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets"
end

That was already a bit hackish, but at least it worked - now with 3.1.0.rc2 and sass-rails I'm getting
'''
Sass::SyntaxError: File to import not found or unreadable: blueprint.
'''

for all the compass-stylesheets. If have seen, that sass-options are now set via config.sass.<option>- but the simplistic:

config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/compass/stylesheets"
config.sass.load_paths << "#{Gem.loaded_specs['compass'].full_gem_path}/frameworks/blueprint/stylesheets" 

is not working, as config.sass.load_paths is nil. Any ideas how to feed sass-rails these additional paths?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions