Skip to content

Commit

Permalink
fixed link_to example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 10, 2012
1 parent 632e25e commit 2ef5b36
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -327,7 +327,7 @@ Generate file input element.
=head2 C<form_for>
%= form_for login => (method => 'POST') => begin
%= form_for login => begin
%= text_field 'first_name'
%= submit_button
% end
Expand All @@ -347,7 +347,7 @@ Generate file input element.
Generate portable form for route, path or URL. For routes that allow C<POST>
but not C<GET>, a C<method> attribute will be automatically added.
<form action="/path/to/login" method="POST">
<form action="/path/to/login">
<input name="first_name" />
<input value="Ok" type="submit" />
</form>
Expand Down Expand Up @@ -428,7 +428,9 @@ capitalized link target as content.
<a href="/path/to/index">Home</a>
<a class="links" href="/path/to/index.txt">Home</a>
<a class="links" href="/path/to/index.txt">Home</a>
<a class="links" href="/path/to/index.txt">
Home
</a>
<a href="/path/to/index">Home</a>
<a href="/path/to/file">File</a>
<a href="http://mojolicio.us">Mojolicious</a>
Expand Down

0 comments on commit 2ef5b36

Please sign in to comment.