Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glebm@google.com>2015-01-17 19:48:11 +0300
committerGleb Mazovetskiy <glebm@google.com>2015-01-17 19:48:11 +0300
commit847887b0ac523221b80cb986e5e42241bab0158a (patch)
treec177e431c2663e5409b3b027f02c5156d8bec44a
parent4427d7f7fb36bc7568d03f7cd6c635e6550e6b9c (diff)
Change new Rails app instructions #691
-rw-r--r--README.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index b34e2de..4ceca14 100644
--- a/README.md
+++ b/README.md
@@ -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`: