Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

HABTM Checkboxes (revised)

#17 HABTM Checkboxes (revised)

Dec 22, 2011 | 6 minutes | Active Record, Views, Forms
A many-to-many association can be edited through check boxes in a form. Here I show how to do this with a has_many through association complete with clickable labels.
  • Download:
  • source codeProject Files in Zip (93.3 KB)
  • mp4Full Size H.264 Video (10.8 MB)
  • m4vSmaller H.264 Video (6.44 MB)
  • webmFull Size VP8 Video (8.22 MB)
  • ogvFull Size Theora Video (14.4 MB)