Skip to content

Commit

Permalink
routing guide: documents the CONTROLLER environment variable understo…
Browse files Browse the repository at this point in the history
…od by the routes task
  • Loading branch information
fxn committed Aug 8, 2010
1 parent 783dc52 commit 4b18d3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions railties/guides/source/routing.textile
Expand Up @@ -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
Expand Down

0 comments on commit 4b18d3c

Please sign in to comment.