From f624d01fd8d3db8f0187526fd86daf88dcee639b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 29 Apr 2012 02:47:36 +0000 Subject: [PATCH] view: labelled_form_for: equals sign mandatory to print blocks and use :as git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9572 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issue_categories/edit.html.erb | 3 ++- app/views/issue_categories/new.html.erb | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/views/issue_categories/edit.html.erb b/app/views/issue_categories/edit.html.erb index 4f29ab8f8..c04aacb07 100644 --- a/app/views/issue_categories/edit.html.erb +++ b/app/views/issue_categories/edit.html.erb @@ -1,6 +1,7 @@

<%=l(:label_issue_category)%>

-<% labelled_form_for :issue_category, @category, :url => issue_category_path(@category), :html => {:method => :put} do |f| %> +<%= labelled_form_for @category, :as => :issue_category, + :url => issue_category_path(@category), :html => {:method => :put} do |f| %> <%= render :partial => 'issue_categories/form', :locals => { :f => f } %> <%= submit_tag l(:button_save) %> <% end %> diff --git a/app/views/issue_categories/new.html.erb b/app/views/issue_categories/new.html.erb index e63c09ea9..b8ecf8974 100644 --- a/app/views/issue_categories/new.html.erb +++ b/app/views/issue_categories/new.html.erb @@ -1,6 +1,7 @@

<%=l(:label_issue_category_new)%>

-<% labelled_form_for :issue_category, @category, :url => project_issue_categories_path(@project) do |f| %> +<%= labelled_form_for @category, :as => :issue_category, + :url => project_issue_categories_path(@project) do |f| %> <%= render :partial => 'issue_categories/form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> <% end %> -- 2.39.5