]> source.dussan.org Git - redmine.git/commitdiff
Rails3: view: use explicit post method at my/account.html.erb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Jan 2012 10:13:00 +0000 (10:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 3 Jan 2012 10:13:00 +0000 (10:13 +0000)
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

app/views/my/account.html.erb

index f59c3dd1d7461b36cde9ffd5b68122c294164fc0..9d6910bce62de5571b181e94ca1d83268629ebe0 100644 (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>