it seems that I should use the f.association .... I get the
check_boxes correctly displayed
THIS WORKS FINE...
= f.association :categories, :as => :check_boxes, :item_wrapper_tag
=> :p, :item_wrapper_class => "blog-category", :wrapper
=> :checkbox
however I have an additional label displayed .. which I need to find
how to get rid of it ..
<div class="control-group check_boxes optional">
<div class="controls">
<span class="left">
<label class="checkbox blog-category">
<input type="checkbox" value="2" name="article[category_ids][]"
id="article_category_ids_2" class="check_boxes optional">Generic
</label>
<label class="checkbox blog-category">
<input type="checkbox" value="4" name="article[category_ids][]"
id="article_category_ids_4" class="check_boxes optional">Particular
</label>
<label class="checkbox blog-category">
<input type="checkbox" value="3" name="article[category_ids][]"
id="article_category_ids_3" class="check_boxes optional">Specific
</label>
<input type="hidden" value="" name="article[category_ids][]">
</span>
# HOW TO GET RID of this additional label ?
<span class="left">
<label class="check_boxes optional control-label">Categories</label>
</span>
</div>
</div>