Skip to content

Commit 847887b

Browse files
committed
Change new Rails app instructions #691
1 parent 4427d7f commit 847887b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,14 @@ Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`:
4141
`bootstrap-sprockets` must be imported before `bootstrap` for the icon fonts to work.
4242

4343
Make sure the file has `.css.scss` extension (or `.css.sass` for Sass syntax). If you have just generated a new Rails app,
44-
it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so remove it:
44+
it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so rename it:
4545

4646
```console
47-
$ rm app/assets/stylesheets/application.css
47+
$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
4848
```
4949

50+
Then, remove all the `//= require` and `//= require_tree` statements from the file. Instead, use `@import` to import Sass files.
51+
5052
Do not use `//= require` in Sass or your other stylesheets will not be [able to access][antirequire] the Bootstrap mixins or variables.
5153

5254
Require Bootstrap Javascripts in `app/assets/javascripts/application.js`:

0 commit comments

Comments
 (0)