diff options
author | Gleb Mazovetskiy <glebm@google.com> | 2015-01-17 19:48:11 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glebm@google.com> | 2015-01-17 19:48:11 +0300 |
commit | 847887b0ac523221b80cb986e5e42241bab0158a (patch) | |
tree | c177e431c2663e5409b3b027f02c5156d8bec44a | |
parent | 4427d7f7fb36bc7568d03f7cd6c635e6550e6b9c (diff) |
Change new Rails app instructions #691
-rw-r--r-- | README.md | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -41,12 +41,14 @@ Import Bootstrap styles in `app/assets/stylesheets/application.css.scss`: `bootstrap-sprockets` must be imported before `bootstrap` for the icon fonts to work. Make sure the file has `.css.scss` extension (or `.css.sass` for Sass syntax). If you have just generated a new Rails app, -it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so remove it: +it may come with a `.css` file instead. If this file exists, it will be served instead of Sass, so rename it: ```console -$ rm app/assets/stylesheets/application.css +$ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss ``` +Then, remove all the `//= require` and `//= require_tree` statements from the file. Instead, use `@import` to import Sass files. + Do not use `//= require` in Sass or your other stylesheets will not be [able to access][antirequire] the Bootstrap mixins or variables. Require Bootstrap Javascripts in `app/assets/javascripts/application.js`: |