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
This commit is contained in:
Toshi MARUYAMA 2012-01-03 10:48:40 +00:00
parent 737655cebc
commit bddd2a740d
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<% form_for :project, @project, <% form_for :project, @project,
:url => { :action => 'modules', :id => @project }, :url => { :action => 'modules', :id => @project },
:html => {:id => 'modules-form'} do |f| %> :html => {:id => 'modules-form',
:method => :post} do |f| %>
<div class="box"> <div class="box">
<fieldset> <fieldset>