From 05f3bb6241565dd1cdbc17068a95441ace6cfb50 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 23 Nov 2011 20:21:10 +0000 Subject: [PATCH] Removed object name from form_for arguments. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7905 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/_edit.html.erb | 2 +- app/views/projects/copy.html.erb | 2 +- app/views/projects/new.html.erb | 2 +- 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 @@

<%=l(:label_project_new)%>

-<% 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 } %>
<%= l(:button_copy) %> 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 @@

<%=l(:label_project_new)%>

-<% 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' %> -- 2.39.5