diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-08 18:35:43 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-08 18:35:43 +0200 |
commit | 4d3b2ea68b5a245272dfae41c5d68abd8207183d (patch) | |
tree | 816b1c3fe72f9d79219ccdba51da68f2bf76df14 /railties | |
parent | 672c796ac4fe857fde817e7603f74790d4aca0b8 (diff) | |
parent | b7c4523a94c8cbd13f183f4bce17db13143d45f1 (diff) | |
download | rails-4d3b2ea68b5a245272dfae41c5d68abd8207183d.tar.gz rails-4d3b2ea68b5a245272dfae41c5d68abd8207183d.tar.bz2 rails-4d3b2ea68b5a245272dfae41c5d68abd8207183d.zip |
Merge remote branch 'rails/master'
Diffstat (limited to 'railties')
-rw-r--r-- | railties/guides/source/routing.textile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile index 7b665d81e7..625941ba31 100644 --- a/railties/guides/source/routing.textile +++ b/railties/guides/source/routing.textile @@ -762,6 +762,12 @@ formatted_users GET /users.:format {:controller=>"users", :action=>"index"} POST /users.:format {:controller=>"users", :action=>"create"} </pre> +You may restrict the listing to the routes that map to a particular controller setting the +CONTROLLER+ environment variable: + +<shell> +$ CONTROLLER=users rake routes +</shell> + 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. h4. Testing Routes |