KES777 / mojo

Mojolicious - Perl real-time web framework
http://mojolicio.us
Artistic License 2.0
0 stars 0 forks source link

Not obvious doc #16

Closed KES777 closed 6 years ago

KES777 commented 7 years ago

It is not obvious that route name should be last argument. It is documented in source code but not mentioned in DOC This did not work: $r->any( '/test', 'route_name', { action => 'xxx' } )

Add corresponding NOTE into the DOC: http://mojolicious.org/perldoc​/Mojolicious/Routes/Route#any

KES777 commented 6 years ago

already fixed:

my $route = $r->any('/:foo' => sub {...} => 'name');