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
This commit is contained in:
Toshi MARUYAMA 2012-04-29 02:47:36 +00:00
parent 4b2fc90431
commit f624d01fd8
2 changed files with 4 additions and 2 deletions

View File

@ -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 %>

View File

@ -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 %>