Displaying 1 result from an estimated 1 matches for "category_upd".
Did you mean:
category_id
2010 Dec 25
6
undefined local variable or method?
I have:
<%= form_for(@supplier) do |f| %>
.......
......
<%= render ''sector_categories'', :locals => {:f => f} %>
in _sector_categories partial I have:
<div class="field">
<div id="category_update">
<% for category in @categories %>
<%= f.check_box :category_ids[], category.id,
@supplier.categories.include?(category) %>
<%= category.name %><br />
<% end %>
</div>
</div>
Why it says: undefined local variable or method...