Rails3: view: use explicit post method at wiki/rename.html.erb
On Rails3, form_for generates hidden "put" input tag. So, 'No route matches "/projects/id/wiki/wikiname/rename"' error raises. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8483 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bddd2a740d
commit
27828590d1
|
@ -4,7 +4,9 @@
|
|||
|
||||
<%= error_messages_for 'page' %>
|
||||
|
||||
<% labelled_form_for :wiki_page, @page, :url => { :action => 'rename' } do |f| %>
|
||||
<% labelled_form_for :wiki_page, @page,
|
||||
:url => { :action => 'rename' },
|
||||
:html => { :method => :post } do |f| %>
|
||||
<div class="box tabular">
|
||||
<p><%= f.text_field :title, :required => true, :size => 100 %></p>
|
||||
<p><%= f.check_box :redirect_existing_links %></p>
|
||||
|
|
Loading…
Reference in New Issue