Skip to content

Commit e992a19

Browse files
committed
[ci skip] Modify all remaining references of rails <command>:
- Some leftover mentions of `rails <command>` in the doc edited to make use of the `bin/rails` binstub instead.
1 parent 00cc4ff commit e992a19

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

guides/source/caching_with_rails.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Types of Caching
4343
This is an introduction to some of the common types of caching.
4444

4545
By default, Action Controller caching is only enabled in your production environment. You can play
46-
around with caching locally by running `rails dev:cache`, or by setting
46+
around with caching locally by running `bin/rails dev:cache`, or by setting
4747
[`config.action_controller.perform_caching`][] to `true` in `config/environments/development.rb`.
4848

4949
NOTE: Changing the value of `config.action_controller.perform_caching` will
@@ -398,7 +398,7 @@ rails new app_name --skip-solid
398398

399399
WARNING: Both Solid Cache and Solid Queue are bundled behind the `--skip-solid`
400400
flag. If you still want to use Solid Queue but not Solid Cache, you can enable
401-
Solid Queue by running `rails app:enable-solid-queue`.
401+
Solid Queue by running `bin/rails app:enable-solid-queue`.
402402

403403
### Configuring the Database
404404

guides/source/command_line.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,9 @@ You can even execute ruby code written in a file with runner.
478478
$ bin/rails runner lib/code_to_be_run.rb
479479
```
480480
481-
By default, `rails runner` scripts are automatically wrapped with the Rails Executor, which helps report uncaught exceptions for tasks like cron jobs.
481+
By default, `bin/rails runner` scripts are automatically wrapped with the Rails Executor, which helps report uncaught exceptions for tasks like cron jobs.
482482
483-
Therefore, executing `rails runner lib/long_running_scripts.rb` is functionally equivalent to the following:
483+
Therefore, executing `bin/rails runner lib/long_running_scripts.rb` is functionally equivalent to the following:
484484
485485
```ruby
486486
Rails.application.executor.wrap do

guides/source/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ warning, or neither.
16731673

16741674
#### `config.active_record.database_cli`
16751675

1676-
Controls which CLI tool will be used for accessing the database when running `rails dbconsole`. By default
1676+
Controls which CLI tool will be used for accessing the database when running `bin/rails dbconsole`. By default
16771677
the standard tool for the database will be used (e.g. `psql` for PostgreSQL and `mysql` for MySQL). The option
16781678
takes a hash which specifies the tool per-database system, and an array can be used where fallback options are
16791679
required:

guides/source/generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ First, the template asks the user whether they would like to install Devise.
479479
If the user replies "yes" (or "y"), the template adds Devise to the `Gemfile`,
480480
and asks the user for the name of the Devise user model (defaulting to `User`).
481481
Later, after `bundle install` has been run, the template will run the Devise
482-
generators and `rails db:migrate` if a Devise model was specified. Finally, the
482+
generators and `bin/rails db:migrate` if a Devise model was specified. Finally, the
483483
template will `git add` and `git commit` the entire app directory.
484484

485485
We can run our template when generating a new Rails application by passing the

guides/source/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Parameters to the path helpers, such as `:id` above, are passed to the generated
166166

167167
Each of these `_path` helpers also have a corresponding `_url` helper (such as `photos_url`) which returns the same path prefixed with the current host, port, and path prefix.
168168

169-
TIP: The prefix used before "_path" and "_url" is the route name and can be identified by looking at the "prefix" column of the `rails routes` command output. To learn more see [Listing Existing Routes](#listing-existing-routes) below.
169+
TIP: The prefix used before "_path" and "_url" is the route name and can be identified by looking at the "prefix" column of the `bin/rails routes` command output. To learn more see [Listing Existing Routes](#listing-existing-routes) below.
170170

171171
### Defining Multiple Resources at the Same Time
172172

guides/source/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The authentication generator adds all of the relevant models, controllers,
4545
views, routes, and migrations needed for basic authentication and password reset
4646
functionality.
4747

48-
To use this feature in your application, you can run `rails generate
48+
To use this feature in your application, you can run `bin/rails generate
4949
authentication`. Here are all of the files the generator modifies and new files
5050
it adds:
5151

guides/source/upgrading_ruby_on_rails.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ You can find a list of all released Rails gems [here](https://rubygems.org/gems/
5454

5555
### The Update Task
5656

57-
Rails provides the `rails app:update` command. After updating the Rails version
57+
Rails provides the `bin/rails app:update` command. After updating the Rails version
5858
in the `Gemfile`, run this command.
5959
This will help you with the creation of new files and changes of old files in an
6060
interactive session.
@@ -752,7 +752,7 @@ You can invalidate the cache either by touching the product, or changing the cac
752752
Rails 7.0 changed some default values for some column types. To avoid that application upgrading from 6.1 to 7.0
753753
load the current schema using the new 7.0 defaults, Rails now includes the version of the framework in the schema dump.
754754

755-
Before loading the schema for the first time in Rails 7.0, make sure to run `rails app:update` to ensure that the
755+
Before loading the schema for the first time in Rails 7.0, make sure to run `bin/rails app:update` to ensure that the
756756
version of the schema is included in the schema dump.
757757

758758
The schema file will look like this:

0 commit comments

Comments
 (0)