Displaying 1 result from an estimated 1 matches for "category_form".
2009 Apr 12
0
rails 2.3 nested forms with has_many through checkboxes
...>
<ul class="submenu">
<%- for category in PageCategory.all -%>
<li>
<%= check_box_tag "page[page_category_ids][]", category.id,
@page.page_categories.include?(category), :class => "checkbox"
%> <% f.fields_for category do |category_form| %><%=
category_form.text_field :title, :style => "width: 200px;", :class =>
"textfield small formElement" %><% end %>
</li>
<%- end -%>
</ul>
Right now, if I try and create or update a page I get the following
error...
ActiveRecord::Un...