Skip to content

Commit

Permalink
mention which controller methods are hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 4, 2013
1 parent b9ba58e commit 2c43300
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -366,7 +366,16 @@ 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 routes constructs.
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">.

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

This has already been done for all methods and attributes from
L<Mojolicious::Controller>.

=head2 More restrictive placeholders

Expand Down

0 comments on commit 2c43300

Please sign in to comment.