RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: michaelrkn
Site: http://www.epicodus.com/
Not sure when Rails added this, but there's a much simpler way now:
<%= f.collection_check_boxes :category_ids, Category.all, :id, :name %>
Not sure when Rails added this, but there's a much simpler way now:
<%= f.collection_check_boxes :category_ids, Category.all, :id, :name %>