]> source.dussan.org Git - redmine.git/commitdiff
view: labelled_form_for: equals sign mandatory to print blocks and use :as
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 29 Apr 2012 02:47:36 +0000 (02:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 29 Apr 2012 02:47:36 +0000 (02:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9572 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issue_categories/edit.html.erb
app/views/issue_categories/new.html.erb

index 4f29ab8f8ddc14ee2a87e18f4dd36f870eb3214a..c04aacb07d3e4e4bda474593e484a7f3abf79fd8 100644 (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 %>
index e63c09ea91e4988541ba35fdc2267f4eb01dadf7..b8ecf8974fbc88dc59eceaa838802bb530cc9cb8 100644 (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 %>