mirror of https://github.com/rails/rails
Improve Rails 7 documentation for the command line and asset pipeline
This commit is contained in:
parent
135f41d0b0
commit
97bf34fdd5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue