From 737655cebc51e660d43f08584d1665f5c7e21d37 2012-01-03 10:13:00 From: Toshi MARUYAMA Date: 2012-01-03 10:13:00 Subject: [PATCH] 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 --- diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index f59c3dd..9d6910b 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -6,8 +6,10 @@

<%=l(:label_my_account)%>

<%= 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| %>
<%=l(:label_information_plural)%>