summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-23 20:21:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-23 20:21:10 +0000
commit05f3bb6241565dd1cdbc17068a95441ace6cfb50 (patch)
tree162c963faf19a4ee656891f408e9abf64cf57012 /app
parent3e0936606ec9f48030ecd85ecc7be899bac0ae3c (diff)
downloadredmine-05f3bb6241565dd1cdbc17068a95441ace6cfb50.tar.gz
redmine-05f3bb6241565dd1cdbc17068a95441ace6cfb50.zip
Removed object name from form_for arguments.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7905 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/projects/_edit.html.erb2
-rw-r--r--app/views/projects/copy.html.erb2
-rw-r--r--app/views/projects/new.html.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/_edit.html.erb b/app/views/projects/_edit.html.erb
index 2ecc822df..43e1c3ba6 100644
--- a/app/views/projects/_edit.html.erb
+++ b/app/views/projects/_edit.html.erb
@@ -1,4 +1,4 @@
-<% labelled_tabular_form_for :project, @project, :url => project_path(@project), :html => {:method => (@project.new_record? ? :post : :put) } do |f| %>
+<% labelled_tabular_form_for @project do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
<% end %>
diff --git a/app/views/projects/copy.html.erb b/app/views/projects/copy.html.erb
index ee42813c6..1ea4d43cd 100644
--- a/app/views/projects/copy.html.erb
+++ b/app/views/projects/copy.html.erb
@@ -1,6 +1,6 @@
<h2><%=l(:label_project_new)%></h2>
-<% labelled_tabular_form_for :project, @project, :url => { :action => "copy" } do |f| %>
+<% labelled_tabular_form_for @project, :url => { :action => "copy" } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<fieldset class="box"><legend><%= l(:button_copy) %></legend>
diff --git a/app/views/projects/new.html.erb b/app/views/projects/new.html.erb
index a10cf15a9..1b87acf68 100644
--- a/app/views/projects/new.html.erb
+++ b/app/views/projects/new.html.erb
@@ -1,6 +1,6 @@
<h2><%=l(:label_project_new)%></h2>
-<% labelled_tabular_form_for :project, @project, :url => { :action => "create" } do |f| %>
+<% labelled_tabular_form_for @project do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_create) %>
<%= submit_tag l(:button_create_and_continue), :name => 'continue' %>