Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
small routing guide tweaks
  • Loading branch information
kraih committed Nov 17, 2011
1 parent e543441 commit b360e70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,6 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.28 2011-11-17 00:00:00
2.28 2011-11-18 00:00:00
- Improved documentation.
- Fixed small IPv6 portabilty issue in Mojo::IOLoop::Client.

Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -312,13 +312,13 @@ The C<controller> is always appended to the C<namespace> if available.
$r->route('/bye')->to('foo#bye', namespace => 'MyApp::Controller');

You can also change the default namespace for all routes in the application
with the C<namespace> attribute of the router.
with the C<namespace> attribute of the router object.

$r->namespace('MyApp::Controller');

=head2 Route to callback (C<cb>)

You can use the C<cb> stash value to bypass controllers and execute a
The C<cb> stash value can be used to bypass controllers and execute a
callback instead.

$r->route('/bye')->to(cb => sub {
Expand Down

0 comments on commit b360e70

Please sign in to comment.