diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-03 10:13:00 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-03 10:13:00 +0000 |
commit | 737655cebc51e660d43f08584d1665f5c7e21d37 (patch) | |
tree | 63b5e8e98a0bdf08928b6cc06859c25fd170c814 /app | |
parent | 4cc27319967aea16f8c97b5b3eeaaa4273b66290 (diff) | |
download | redmine-737655cebc51e660d43f08584d1665f5c7e21d37.tar.gz redmine-737655cebc51e660d43f08584d1665f5c7e21d37.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/views/my/account.html.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/my/account.html.erb b/app/views/my/account.html.erb index f59c3dd1d..9d6910bce 100644 --- a/app/views/my/account.html.erb +++ b/app/views/my/account.html.erb @@ -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> |