RailsCasts Pro episodes are now free!

Learn more or hide this

Michael Kaiser-Nyman's Profile

GitHub User: michaelrkn

Site: http://www.epicodus.com/

Comments by Michael Kaiser-Nyman

Avatar

Not sure when Rails added this, but there's a much simpler way now:

ruby
<%= f.collection_check_boxes :category_ids, Category.all, :id, :name %>