I am working on The Ruby on Rails Tutorial on Linux Xubuntu, and everything is working until I add:
app/assets/stylesheets/custom.css.scss
@import "bootstrap-sprockets";
@import "bootstrap";
Then I get an error message: File to import not found or unreadable: bootstrap-sprockets.
If I remove the custom.css.scss file the error message goes away.
Glenn Sutherland <glennsutherland2740@gmail.com> writes:
I am working on The Ruby on Rails Tutorial on Linux Xubuntu, and everything
is working until I add:
app/assets/stylesheets/custom.css.scss
@import "bootstrap-sprockets";@import "bootstrap";
Then I get an error message: File to import not found or unreadable: bootstrap-sprockets.
If I remove the custom.css.scss file the error message goes away.
I think Hartl might just be wrong. The README for `bootstrap-sass`
indicates these should be in
`app/assets/stylesheets/application.css.scss`, and you have to make some
other modifications to it as well.
See <GitHub - twbs/bootstrap-sass: Official Sass port of Bootstrap 2 and 3.; where the
Gem describes how to install and configure it in the Rails application.
Thanks for your help Tamara, I went to the link and then I installed the bootstrap-sass gem. I was able to get it to work using the same file location
gem 'bootstrap-sass', '~> 3.3.6'
Thanks again,
Glenn Sutherland