From: Jean-Philippe Lang Date: Wed, 23 Nov 2011 20:21:10 +0000 (+0000) Subject: Removed object name from form_for arguments. X-Git-Tag: 1.3.0~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=05f3bb6241565dd1cdbc17068a95441ace6cfb50;p=redmine.git Removed object name from form_for arguments. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7905 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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' %>