Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed name argument from route name example
  • Loading branch information
kraih committed Nov 30, 2011
1 parent e506a48 commit 8f0b27c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -222,7 +222,7 @@ equal to the route itself without non-word characters.
# /
get '/' => sub {
my $self = shift;
$self->render(name => 'Reload');
$self->render;
} => 'index';
# /hello
Expand All @@ -231,8 +231,8 @@ equal to the route itself without non-word characters.
__DATA__
@@ index.html.ep
<%= link_to $name => 'index' %>.
<%= link_to Hello => 'hello' %>.
<%= link_to Hello => 'hello' %>.
<%= link_to Reload => 'index' %>.
@@ hello.html.ep
Hello World!
Expand Down

0 comments on commit 8f0b27c

Please sign in to comment.