summaryrefslogtreecommitdiffstats
path: root/app/views/projects
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-03 10:48:40 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-03 10:48:40 +0000
commitbddd2a740d7a0d434ba126407898281be4942940 (patch)
tree722f247e3e19e52af8fb77df504761e662f8ded4 /app/views/projects
parent737655cebc51e660d43f08584d1665f5c7e21d37 (diff)
downloadredmine-bddd2a740d7a0d434ba126407898281be4942940.tar.gz
redmine-bddd2a740d7a0d434ba126407898281be4942940.zip
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
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/settings/_modules.html.erb3
1 files changed, 2 insertions, 1 deletions
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| %>
<div class="box">
<fieldset>