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:
parent
4cc2731996
commit
737655cebc
@ -6,8 +6,10 @@
|
|||||||
<h2><%=l(:label_my_account)%></h2>
|
<h2><%=l(:label_my_account)%></h2>
|
||||||
<%= error_messages_for 'user' %>
|
<%= error_messages_for 'user' %>
|
||||||
|
|
||||||
<% labelled_form_for :user, @user, :url => { :action => "account" },
|
<% labelled_form_for :user, @user,
|
||||||
:html => { :id => 'my_account_form' } do |f| %>
|
:url => { :action => "account" },
|
||||||
|
:html => { :id => 'my_account_form',
|
||||||
|
:method => :post } do |f| %>
|
||||||
<div class="splitcontentleft">
|
<div class="splitcontentleft">
|
||||||
<fieldset class="box tabular">
|
<fieldset class="box tabular">
|
||||||
<legend><%=l(:label_information_plural)%></legend>
|
<legend><%=l(:label_information_plural)%></legend>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user