Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 4, 2013
1 parent 2c43300 commit 5cd9045
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -366,10 +366,11 @@ separated by other characters than C</>.
->to(controller => 'foo', action => 'bar');

Special stash values like C<controller> and C<action> can also be
placeholders, this allows for extremely flexible route constructs, but should
be used with care. All uppercase controller methods as well as those starting
with an underscore are automatically hidden from the router, to hide
additional ones you can also use L<Mojolicious::Routes/"hide">.
placeholders, which allows for extremely flexible route constructs, but should
be used with care, because every controller method becomes a potential route.
All uppercase methods as well as those starting with an underscore are
automatically hidden from the router, to hide additional ones you can also use
L<Mojolicious::Routes/"hide">.

# Hide "create" method in all controllers
$r->hide('create');
Expand Down

0 comments on commit 5cd9045

Please sign in to comment.