提交 f7d825d7 编写于 作者: D Djoume Salvetti

Fix typos in asset_pipeline.md

上级 6a75f127
...@@ -45,7 +45,7 @@ gem 'coffee-rails' ...@@ -45,7 +45,7 @@ gem 'coffee-rails'
``` ```
Using the `--skip-sprockets` option will prevent Rails 4 from adding Using the `--skip-sprockets` option will prevent Rails 4 from adding
`sass-rails` and `uglifier` to Gemfile, so if you later want to enable `sass-rails` and `uglifier` to your Gemfile, so if you later want to enable
the asset pipeline you will have to add those gems to your Gemfile. Also, the asset pipeline you will have to add those gems to your Gemfile. Also,
creating an application with the `--skip-sprockets` option will generate creating an application with the `--skip-sprockets` option will generate
a slightly different `config/application.rb` file, with a require statement a slightly different `config/application.rb` file, with a require statement
...@@ -66,7 +66,7 @@ config.assets.js_compressor = :uglifier ...@@ -66,7 +66,7 @@ config.assets.js_compressor = :uglifier
``` ```
NOTE: The `sass-rails` gem is automatically used for CSS compression if included NOTE: The `sass-rails` gem is automatically used for CSS compression if included
in Gemfile and no `config.assets.css_compressor` option is set. in the Gemfile and no `config.assets.css_compressor` option is set.
### Main Features ### Main Features
...@@ -1300,7 +1300,7 @@ Rails 4 no longer sets default config values for Sprockets in `test.rb`, so ...@@ -1300,7 +1300,7 @@ Rails 4 no longer sets default config values for Sprockets in `test.rb`, so
environment are: `config.assets.compile = true`, `config.assets.compress = false`, environment are: `config.assets.compile = true`, `config.assets.compress = false`,
`config.assets.debug = false` and `config.assets.digest = false`. `config.assets.debug = false` and `config.assets.digest = false`.
The following should also be added to `Gemfile`: The following should also be added to your `Gemfile`:
```ruby ```ruby
gem 'sass-rails', "~> 3.2.3" gem 'sass-rails', "~> 3.2.3"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册