Improve Rails 7 documentation for the command line and asset pipeline

This commit is contained in:
Ghouse Mohamed 2022-02-12 10:31:13 +05:30
parent 135f41d0b0
commit 97bf34fdd5
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 The asset pipeline is implemented by the
[sprockets-rails](https://github.com/rails/sprockets-rails) gem, [sprockets-rails](https://github.com/rails/sprockets-rails) gem,
and is enabled by default. You can disable it while creating a new application by 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 ```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) 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 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. so you can easily add asset pipelining later if you like.
The directives that work in JavaScript files also work in stylesheets 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-record` | Skip Active Record files |
| `--skip-active-storage` | Skip Active Storage files | | `--skip-active-storage` | Skip Active Storage files |
| `--skip-action-cable` | Skip Action Cable 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-javascript` | Skip JavaScript files |
| `--skip-turbolinks` | Skip turbolinks gem | | `--skip-turbolinks` | Skip turbolinks gem |
| `--skip-test` | Skip test files | | `--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 $ cd commandsapp
$ bin/rails server $ bin/rails server
=> Booting Puma => 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 => Run `bin/rails server --help` for more startup options
Puma starting in single mode... Puma starting in single mode...
* Version 3.12.1 (ruby 2.5.7-p206), codename: Llamas in Pajamas * Version 3.12.1 (ruby 2.5.7-p206), codename: Llamas in Pajamas
@ -441,7 +441,7 @@ $ bin/rails destroy model Oops
```bash ```bash
$ bin/rails about $ bin/rails about
About your application's environment About your application's environment
Rails version 6.0.0 Rails version 7.0.0
Ruby version 2.7.0 (x86_64-linux) Ruby version 2.7.0 (x86_64-linux)
RubyGems version 2.7.3 RubyGems version 2.7.3
Rack version 2.0.4 Rack version 2.0.4