1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #44409 from ghousemohamed/patch-4

Improve Rails 7 documentation for the command line and asset pipeline [ci-skip]
This commit is contained in:
Jonathan Hefner 2022-02-11 23:03:14 -06:00 committed by GitHub
commit 724988697c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -27,10 +27,10 @@ from other gems.
The asset pipeline is implemented by the
[sprockets-rails](https://github.com/rails/sprockets-rails) gem,
and is enabled by default. You can disable it while creating a new application by
passing the `--skip-sprockets` option.
passing the `--skip-asset-pipeline` option.
```bash
$ rails new appname --skip-sprockets
$ rails new appname --skip-asset-pipeline
```
Rails can easily work with Sass by adding the [`sassc-rails`](https://github.com/sass/sassc-rails)
@ -444,7 +444,7 @@ which contains these lines:
```
Rails creates `app/assets/stylesheets/application.css` regardless of whether the
`--skip-sprockets` option is used when creating a new Rails application. This is
`--skip-asset-pipeline` option is used when creating a new Rails application. This is
so you can easily add asset pipelining later if you like.
The directives that work in JavaScript files also work in stylesheets

View file

@ -101,7 +101,7 @@ If you wish to skip some files or components from being generated, you can appen
| `--skip-active-record` | Skip Active Record files |
| `--skip-active-storage` | Skip Active Storage files |
| `--skip-action-cable` | Skip Action Cable files |
| `--skip-sprockets` | Skip Sprockets files |
| `--skip-asset-pipeline` | Skip Asset Pipeline |
| `--skip-javascript` | Skip JavaScript files |
| `--skip-turbolinks` | Skip turbolinks gem |
| `--skip-test` | Skip test files |
@ -118,7 +118,7 @@ With no further work, `bin/rails server` will run our new shiny Rails app:
$ cd commandsapp
$ bin/rails server
=> Booting Puma
=> Rails 6.0.0 application starting in development
=> Rails 7.0.0 application starting in development
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Version 3.12.1 (ruby 2.5.7-p206), codename: Llamas in Pajamas
@ -441,7 +441,7 @@ $ bin/rails destroy model Oops
```bash
$ bin/rails about
About your application's environment
Rails version 6.0.0
Rails version 7.0.0
Ruby version 2.7.0 (x86_64-linux)
RubyGems version 2.7.3
Rack version 2.0.4