Rails3: view: use explicit post method at messages/edit.html.erb
On Rails3, form_for generates hidden "put" input tag. So, 'No route matches "/boards/1/topics/1/edit"' error raises. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8500 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8d9dcfa39b
commit
f25aa90490
|
@ -1,6 +1,10 @@
|
||||||
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %></h2>
|
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> » <%=h @message.subject %></h2>
|
||||||
|
|
||||||
<% form_for :message, @message, :url => {:action => 'edit'}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
|
<% form_for :message, @message,
|
||||||
|
:url => {:action => 'edit'},
|
||||||
|
:html => {:multipart => true,
|
||||||
|
:id => 'message-form',
|
||||||
|
:method => :post} do |f| %>
|
||||||
<%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %>
|
<%= render :partial => 'form', :locals => {:f => f, :replying => !@message.parent.nil?} %>
|
||||||
<%= submit_tag l(:button_save) %>
|
<%= submit_tag l(:button_save) %>
|
||||||
<%= link_to_remote l(:label_preview),
|
<%= link_to_remote l(:label_preview),
|
||||||
|
|
Loading…
Reference in New Issue