diff options
author | Matthew Draper <matthew@trebex.net> | 2018-07-25 04:10:29 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 04:10:29 +0930 |
commit | ec387c6dd975fecea69db2ed9ff0c090ac59cf83 (patch) | |
tree | b3720e23e2f1832c894f75a167a57bcf4ef5259b /guides/source/routing.md | |
parent | 48c287d1963fba09cf620527d35519f67d5ca01a (diff) | |
parent | 2e194d0c9edfa54cb955b48fa204de2f4c980239 (diff) | |
download | rails-ec387c6dd975fecea69db2ed9ff0c090ac59cf83.tar.gz rails-ec387c6dd975fecea69db2ed9ff0c090ac59cf83.tar.bz2 rails-ec387c6dd975fecea69db2ed9ff0c090ac59cf83.zip |
Merge pull request #33229 from albertoalmagro/albertoalmagro/prefer-rails-command-over-bin-rails
Prefer rails command over bin/rails
Diffstat (limited to 'guides/source/routing.md')
-rw-r--r-- | guides/source/routing.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/guides/source/routing.md b/guides/source/routing.md index c45fe1f79f..23a5538d9b 100644 --- a/guides/source/routing.md +++ b/guides/source/routing.md @@ -1191,18 +1191,18 @@ edit_user GET /users/:id/edit(.:format) users#edit 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 -g new_comment -$ bin/rails routes -g POST -$ bin/rails routes -g admin +$ rails routes -g new_comment +$ rails routes -g POST +$ rails routes -g admin ``` If you only want to see the routes that map to a specific controller, there's the -c option. ``` -$ bin/rails routes -c users -$ bin/rails routes -c admin/users -$ bin/rails routes -c Comments -$ bin/rails routes -c Articles::CommentsController +$ rails routes -c users +$ rails routes -c admin/users +$ rails routes -c Comments +$ rails routes -c Articles::CommentsController ``` 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. You can also use --expanded option to turn on the expanded table formatting mode. |