diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-03-05 18:54:09 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2018-03-13 11:56:33 +0200 |
commit | e78b1e5e615978a221b68530641101451ab83e68 (patch) | |
tree | 5598f7730ed44276def23ad153af6c73ebfb79fe | |
parent | 3c9edcffb60b21beb6d54a72d38aa1883fc7b2c9 (diff) | |
download | rails-e78b1e5e615978a221b68530641101451ab83e68.tar.gz rails-e78b1e5e615978a221b68530641101451ab83e68.tar.bz2 rails-e78b1e5e615978a221b68530641101451ab83e68.zip |
Improve docs of `ActionDispatch::Routing`
- Add a mention about `-g`.
- Improve info about `--expanded` option of `rails routes`.
-rw-r--r-- | actionpack/lib/action_dispatch/routing.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb index 776058d98e..5cde677051 100644 --- a/actionpack/lib/action_dispatch/routing.rb +++ b/actionpack/lib/action_dispatch/routing.rb @@ -243,9 +243,9 @@ module ActionDispatch # # rails routes # - # Target specific controllers by prefixing the command with <tt>-c</tt> option. Use - # <tt>--expanded</tt> to turn on the expanded table formatting mode. - # + # Target a specific controller with <tt>-c</tt>, or grep routes + # using <tt>-g</tt>. Useful in conjunction with <tt>--expanded</tt> + # which displays routes vertically. module Routing extend ActiveSupport::Autoload |