diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-12 10:40:04 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-12 10:40:04 +0100 |
commit | f709682697dd1654e4251e7c3db30e054910cccb (patch) | |
tree | 546ec8ed73639ae0a1919a12464f0ff341704ed3 /guides | |
parent | 8925e37fdcc37f4ff2ab2d55168719bbe9386ebf (diff) | |
parent | ef2a8c23911c35272da139a47e05a15ebf292334 (diff) | |
download | rails-f709682697dd1654e4251e7c3db30e054910cccb.tar.gz rails-f709682697dd1654e4251e7c3db30e054910cccb.tar.bz2 rails-f709682697dd1654e4251e7c3db30e054910cccb.zip |
Merge pull request #23612 from vipulnsward/23561-fix-routes-args
Fix argument passing to rake routes
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/routing.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md index 777d1d24b6..bd3e236a2b 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -1136,19 +1136,19 @@ For example, here's a small section of the `rails routes` output for a RESTful r edit_user GET /users/:id/edit(.:format) users#edit ``` -You can search through your routes with the --grep option (-g for short). This outputs any routes that partially match the URL helper method name, the HTTP verb, or the URL path. +You can search through your routes with the grep option: -g. This outputs any routes that partially match the URL helper method name, the HTTP verb, or the URL path. ``` -$ bin/rails routes --grep new_comment +$ bin/rails routes -g new_comment $ bin/rails routes -g POST $ bin/rails routes -g admin ``` -If you only want to see the routes that map to a specific controller, there's the --controller option (-c for short). +If you only want to see the routes that map to a specific controller, there's the -c option. ``` -$ bin/rails routes --controller users -$ bin/rails routes --controller admin/users +$ bin/rails routes -c users +$ bin/rails routes -c admin/users $ bin/rails routes -c Comments $ bin/rails routes -c Articles::CommentsController ``` |