diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-03 12:08:54 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-03 12:08:54 +0000 |
commit | 27828590d1bd986e107365d8e3c72d8661f08945 (patch) | |
tree | ca827889991d3fef4e349130b38c9facb9805018 /app/views/wiki/rename.html.erb | |
parent | bddd2a740d7a0d434ba126407898281be4942940 (diff) | |
download | redmine-27828590d1bd986e107365d8e3c72d8661f08945.tar.gz redmine-27828590d1bd986e107365d8e3c72d8661f08945.zip |
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
Diffstat (limited to 'app/views/wiki/rename.html.erb')
-rw-r--r-- | app/views/wiki/rename.html.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/wiki/rename.html.erb b/app/views/wiki/rename.html.erb index e5a6d726b..e0be76ae9 100644 --- a/app/views/wiki/rename.html.erb +++ b/app/views/wiki/rename.html.erb @@ -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> |