Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Various ways to handle multi-model forms in Rails.
Ruby JavaScript

This branch is 10 commits ahead, 7 commits behind ryanb:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
db
doc
public
script
test
.gitignore
LICENSE
README.rdoc
Rakefile

README.rdoc

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
script/server

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.