From bddd2a740d7a0d434ba126407898281be4942940 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 3 Jan 2012 10:48:40 +0000 Subject: [PATCH] Rails3: view: use explicit post method at projects/settings/_modules.html.erb On Rails3, form_for generates hidden "put" input tag. So, 'No route matches "/projects/id/modules"' error raises. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8482 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/settings/_modules.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/projects/settings/_modules.html.erb b/app/views/projects/settings/_modules.html.erb index d78f68dd3..437ea5e2e 100644 --- a/app/views/projects/settings/_modules.html.erb +++ b/app/views/projects/settings/_modules.html.erb @@ -1,6 +1,7 @@ <% form_for :project, @project, :url => { :action => 'modules', :id => @project }, - :html => {:id => 'modules-form'} do |f| %> + :html => {:id => 'modules-form', + :method => :post} do |f| %>