Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
show namespace examples
  • Loading branch information
kraih committed Aug 6, 2014
1 parent 8169d06 commit 8dcbaf8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -260,9 +260,10 @@ When the dispatcher sees C<controller> and C<action> values in the stash it
will always try to turn them into a class and method to dispatch to. The
C<controller> value gets camelized using L<Mojo::Util/"camelize"> and
prefixed with a C<namespace>, which has two default values, the applications
class followed by C<::Controller> as well as the bare application class, and
they are searched in that order. While the action value is not changed at all,
because of this both values are case sensitive.
class followed by C<Controller> (C<MyApp::Controller>) as well as the bare
application class (C<MyApp>), and they are searched in that order. While the
action value is not changed at all, because of this both values are case
sensitive.

# Application
package MyApp;
Expand Down

0 comments on commit 8dcbaf8

Please sign in to comment.