Rails3: view: use explicit post method at my/account.html.erb

On Rails3, form_for generates hidden "put" input tag.
So, 'No route matches "/my/account"' error raises.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8481 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-03 10:13:00 +00:00
parent 4cc2731996
commit 737655cebc
1 changed files with 4 additions and 2 deletions

View File

@ -6,8 +6,10 @@
<h2><%=l(:label_my_account)%></h2>
<%= error_messages_for 'user' %>
<% labelled_form_for :user, @user, :url => { :action => "account" },
:html => { :id => 'my_account_form' } do |f| %>
<% labelled_form_for :user, @user,
:url => { :action => "account" },
:html => { :id => 'my_account_form',
:method => :post } do |f| %>
<div class="splitcontentleft">
<fieldset class="box tabular">
<legend><%=l(:label_information_plural)%></legend>