Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Various ways to handle multi-model forms in Rails.

This branch is 9 commits ahead and 7 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time


Complex Form Example: Deep Nesting

This solution uses the accepts_nested_attributes_for which was introduced in Rails 2.3. It supports any level of depth in nesting models. The primary challenge in deep nesting is getting the escaping working with JavaScript when adding new records.

Once you clone this repository, just run the migrations and start up the server to try it out.

rake db:migrate

See the branches for alternative solutions. Here's how to clone a remote branch.

git checkout -b deep origin/deep
Something went wrong with that request. Please try again.