Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Nested Model Form (revised)

#196 Nested Model Form (revised)

Apr 19, 2012 | 11 minutes | Active Record, Views, Forms
Handling multiple models in a single form is easy with accepts_nested_attributes_for. Here you will also learn how to add and remove nested records through JavaScript.
  • Download:
  • source codeProject Files in Zip (104 KB)
  • mp4Full Size H.264 Video (22 MB)
  • m4vSmaller H.264 Video (12 MB)
  • webmFull Size VP8 Video (15.4 MB)
  • ogvFull Size Theora Video (26.4 MB)