summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-29 02:47:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-04-29 02:47:36 +0000
commitf624d01fd8d3db8f0187526fd86daf88dcee639b (patch)
treeea64f6f776fa7d3c2f16416da3ac9285138183bd /app
parent4b2fc90431a6011ec0c7ce5318bb98c6133f91b8 (diff)
downloadredmine-f624d01fd8d3db8f0187526fd86daf88dcee639b.tar.gz
redmine-f624d01fd8d3db8f0187526fd86daf88dcee639b.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/views/issue_categories/edit.html.erb3
-rw-r--r--app/views/issue_categories/new.html.erb3
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 @@
<h2><%=l(:label_issue_category)%></h2>
-<% 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 @@
<h2><%=l(:label_issue_category_new)%></h2>
-<% 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 %>