Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed link_to example
  • Loading branch information
kraih committed Jan 5, 2012
1 parent 628d84b commit 17e6509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -475,7 +475,7 @@ Generate script tag for C<Javascript> asset.
<%= link_to index => begin %>Home<% end %>
<%= link_to '/path/to/file' => begin %>File<% end %>
<%= link_to 'http://mojolicio.us' => begin %>Mojolicious<% end %>
<%= link_to url_for->query(foo => $foo) => begin %>Retry<% end %>
<%= link_to url_for->query(foo => 'bar')->to_abs => begin %>Retry<% end %>
Generate link to route, path or URL, defaults to using the capitalized link
target as content.
Expand All @@ -485,7 +485,7 @@ target as content.
<a href="/path/to/index">Home</a>
<a href="/path/to/file">File</a>
<a href="http://mojolicio.us">Mojolicious</a>
<a href="/current/path?foo=something">Retry</a>
<a href="http://127.0.0.1:3000/current/path?foo=bar">Retry</a>
=head2 C<password_field>
Expand Down

0 comments on commit 17e6509

Please sign in to comment.