# Adding Bootstrap CSS

**URL:** <https://discuss.rubyonrails.org/t/adding-bootstrap-css/71555>\
**Category:** rubyonrails-talk\
**Created:** [January 16, 2016, 8:54pm UTC](https://discuss.rubyonrails.org/t/adding-bootstrap-css/71555 "2016-01-16T20:54:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Glenn\_Sutherland](https://avatars.discourse-cdn.com/v4/letter/g/ccd318/32.png) [@Glenn\_Sutherland](https://discuss.rubyonrails.org/u/Glenn_Sutherland)\
**Post date:** [January 16, 2016, 8:54pm UTC](https://discuss.rubyonrails.org/t/adding-bootstrap-css/71555/1 "2016-01-16T20:54:37Z")

</div>

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

```ruby
@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.

```

---

<div class="post-metadata">

**Author:** ![Tamara\_Temple](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tamara\_Temple](https://discuss.rubyonrails.org/u/Tamara_Temple)\
**Post date:** [January 17, 2016, 1:58am UTC](https://discuss.rubyonrails.org/t/adding-bootstrap-css/71555/2 "2016-01-17T01:58:54Z")

</div>

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.](https://github.com/twbs/bootstrap-sass#a-ruby-on-rails&gt); where the Gem describes how to install and configure it in the Rails application.

---

<div class="post-metadata">

**Author:** ![Glenn\_Sutherland](https://avatars.discourse-cdn.com/v4/letter/g/ccd318/32.png) [@Glenn\_Sutherland](https://discuss.rubyonrails.org/u/Glenn_Sutherland)\
**Post date:** [January 17, 2016, 7:08am UTC](https://discuss.rubyonrails.org/t/adding-bootstrap-css/71555/3 "2016-01-17T07:08:26Z")

</div>

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

```ruby
gem 'bootstrap-sass', '~> 3.3.6'

Thanks again,

Glenn Sutherland

```
