Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix confusing wording in Asset Pipeline guide [ci skip] #38782

Merged
merged 6 commits into from
Mar 24, 2020
9 changes: 5 additions & 4 deletions guides/source/asset_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,17 @@ passing the `--skip-sprockets` option.
$ rails new appname --skip-sprockets
```

Rails automatically adds the `sass-rails` gem to your `Gemfile`, which is used
by Sprockets for asset compression:
Rails automatically adds the [`sass-rails`](https://github.com/rails/sass-rails)
gem to your `Gemfile`, which is used by Sprockets for
[Sass](https://sass-lang.com) compilation:

```ruby
gem 'sass-rails'
```

Using the `--skip-sprockets` option will prevent Rails from adding
them to your `Gemfile`, so if you later want to enable
the asset pipeline you will have to add those gems to your `Gemfile`. Also,
this to your `Gemfile`, so if you later want to enable
the asset pipeline you will have to add that gem to your `Gemfile`. Also,
rmacklin marked this conversation as resolved.
Show resolved Hide resolved
creating an application with the `--skip-sprockets` option will generate
a slightly different `config/application.rb` file, with a require statement
for the sprockets railtie that is commented-out. You will have to remove
Expand Down