Skip to content

Commit

Permalink
mention the name method
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 25, 2015
1 parent b33df46 commit 6bdb356
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.09 2015-04-22
6.09 2015-04-25
- Improved HTML Living Standard compliance of Mojo::Parameters. (riche, sri)
- Fixed bug in Mojolicious::Types where the json MIME type did not specify a
charset. (kaktus)
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Routing.pod
Expand Up @@ -421,9 +421,9 @@ L<Mojolicious::Controller/"url_for"> for this.
# Generate URL "http://127.0.0.1:3000/foo/jan" for route "baz"
my $url = $c->url_for('baz', user => 'jan')->to_abs;

Nameless routes get an automatically generated one assigned that is simply
equal to the route itself without non-word characters, custom names have a
higher precedence though.
You can assign a name with L<Mojolicious::Routes::Route/"name">, or let the
router generate one automatically, which would be equal to the route itself
without non-word characters, custom names have a higher precedence though.

# /foo/bar ("foobar")
$r->get('/foo/bar')->to('test#stuff');
Expand Down

0 comments on commit 6bdb356

Please sign in to comment.