Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
another form_for example
  • Loading branch information
kraih committed Mar 22, 2015
1 parent 4d0f723 commit 4738e36
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.04 2015-03-22
6.04 2015-03-23
- Improved Mojo::Reactor::EV and Mojo::Reactor::Poll to fail more
consistently.
- Improved Mojo::Base performance slightly.
Expand Down
6 changes: 6 additions & 0 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -360,6 +360,9 @@ Generate C<input> tag of type C<file>.
%= text_field 'first_name'
%= submit_button
% end
%= form_for some_delete_route => begin
%= submit_button 'Remove'
% end
Generate portable C<form> tag with L<Mojolicious::Controller/"url_for">. For
routes that do not allow C<GET>, a C<method> attribute with the value C<POST>
Expand All @@ -382,6 +385,9 @@ C<_method> query parameter will be added as well.
<input name="first_name" type="text">
<input value="Ok" type="submit">
</form>
<form action="/path/to/delete/route?_method=DELETE" method="POST">
<input value="Remove" type="submit">
</form>
=head2 hidden_field
Expand Down

0 comments on commit 4738e36

Please sign in to comment.