aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/routing.md
diff options
context:
space:
mode:
authorGaurav Sharma <gaurav2728@gmail.com>2016-01-19 16:38:56 +0530
committerGaurav Sharma <gaurav2728@gmail.com>2016-01-19 23:47:14 +0530
commit352a8892fde37ae0b985ac4b8ff510edad40481d (patch)
tree58e75c6d20724ddde2a101f047d52133dec66e50 /guides/source/routing.md
parent3af3c19fd06feb8c705289c16b625cab3378c7e8 (diff)
downloadrails-352a8892fde37ae0b985ac4b8ff510edad40481d.tar.gz
rails-352a8892fde37ae0b985ac4b8ff510edad40481d.tar.bz2
rails-352a8892fde37ae0b985ac4b8ff510edad40481d.zip
use bin/rails default instead of rake commands [ci skip]
I go through the `http://edgeguides.rubyonrails.org/` and found `rake` commands in various files that are in RAILS 5.0 implement by `bin/rails` command. I try to change all that can be directly use `bin/rails …`
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r--guides/source/routing.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md
index 9401132500..09491f3c9a 100644
--- a/guides/source/routing.md
+++ b/guides/source/routing.md
@@ -1116,7 +1116,7 @@ Rails offers facilities for inspecting and testing your routes.
### Listing Existing Routes
-To get a complete list of the available routes in your application, visit `http://localhost:3000/rails/info/routes` in your browser while your server is running in the **development** environment. You can also execute the `rake routes` command in your terminal to produce the same output.
+To get a complete list of the available routes in your application, visit `http://localhost:3000/rails/info/routes` in your browser while your server is running in the **development** environment. You can also execute the `rails routes` command in your terminal to produce the same output.
Both methods will list all of your routes, in the same order that they appear in `config/routes.rb`. For each route, you'll see:
@@ -1125,7 +1125,7 @@ Both methods will list all of your routes, in the same order that they appear in
* The URL pattern to match
* The routing parameters for the route
-For example, here's a small section of the `rake routes` output for a RESTful route:
+For example, here's a small section of the `rails routes` output for a RESTful route:
```
users GET /users(.:format) users#index
@@ -1137,10 +1137,10 @@ edit_user GET /users/:id/edit(.:format) users#edit
You may restrict the listing to the routes that map to a particular controller setting the `CONTROLLER` environment variable:
```bash
-$ CONTROLLER=users bin/rake routes
+$ CONTROLLER=users bin/rails routes
```
-TIP: You'll find that the output from `rake routes` is much more readable if you widen your terminal window until the output lines don't wrap.
+TIP: You'll find that the output from `rails routes` is much more readable if you widen your terminal window until the output lines don't wrap.
### Testing Routes