Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rails 3.2.11 issue #806

Closed
east2dd opened this issue Dec 23, 2014 · 4 comments
Closed

rails 3.2.11 issue #806

east2dd opened this issue Dec 23, 2014 · 4 comments

Comments

@east2dd
Copy link

east2dd commented Dec 23, 2014

According to documentation, I used following versions of sass-rails and bootstrap-sass.

ruby '1.9.3'
gem 'rails', '3.2.11'
....
gem 'sass-rails', '>= 3.2'
gem 'bootstrap-sass', '~> 3.1.1.0'

It throws the following error:

File to import not found or unreadable: mixins/hide-text.
Load paths:
  Sass::Rails::Importer( ... /app/assets/stylesheets/admin/global.css.scss )
@cvrebert
Copy link
Collaborator

Please upgrade to bootstrap-sass v3.3.1.0. If that doesn't fix the problem, I'll be happy to reopen this issue.

@glebm
Copy link
Member

glebm commented Jan 15, 2015

Rails 3.2 is no longer supported. However, you could try with the following gems:

# Backported asset pipeline gems for Bootstrap compatibility:
gem 'sprockets-rails', '=2.0.0.backport1'
gem 'sprockets', github: 'DenisColeman/sprockets-2.2.2.backport'
gem 'sass-rails', github: 'guilleiguaran/sass-rails', branch: 'backport'

Disclaimer, from the sass-rails backport author in #764 (comment):

I'm going to say this as clearly as possible: using a random repo with no history, that purports to be a patched version of Sprockets, is a REALLY bad idea™.

The same goes for the sass-rails backport.

@D-system
Copy link

A workaround in application.rb:

    config.sass.load_paths ||= []
    config.sass.load_paths << "#{Gem.loaded_specs['bootstrap-sass'].full_gem_path}/assets/stylesheets"
    config.sass.load_paths << "#{Gem.loaded_specs['bootstrap-sass'].full_gem_path}/assets/stylesheets/bootstrap"

@benlangfeld
Copy link

benlangfeld commented Oct 25, 2016

Prefixing all files in assets/stylesheets/bootstrap/_mixins.scss a lá rails/sass-rails#137 (comment) also worked for me. Would you accept a PR to that effect, @glebm?

benlangfeld added a commit to powerhome/bootstrap-sass that referenced this issue Oct 25, 2016
In 2e1ca4e, all imports in _bootstrap.scss were namespaced to support older Rails/Sprockets (see rails/sass-rails#137 (comment)). Unfortunately, this wasn't also applied to the mixins sub-directory, causing failures like twbs#806.

See twbs#806 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants