diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/_edit.html.erb | 2 | ||||
-rw-r--r-- | app/views/projects/copy.html.erb | 2 | ||||
-rw-r--r-- | 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 @@ <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' %> |