Various ways to handle multi-model forms in Rails.
Ruby JavaScript
Latest commit 3778e20 Feb 17, 2011 @ryanb fixing code blocks in readme
Permalink
Failed to load latest commit information.
app adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
config
db adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
doc
lib/tasks adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
public adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
script adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
test adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
vendor/plugins
.gitignore
.rvmrc
Gemfile adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
Gemfile.lock adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
README.md fixing code blocks in readme Feb 17, 2011
Rakefile adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011
config.ru adding Rails 3 app based on Railscasts episodes 196 and 197 Feb 15, 2011

README.md

Complex Form Examples

This repository contains examples of complex nested model forms in Rails 3. To try it out clone this repository and run the following commands.

bundle
rake db:migrate
rails s

See the branches for different approaches. Run this command to check out another branch.

git checkout -b jquery origin/jquery

The master and jquery branches contain an approach demonstrated in Railscasts episodes 196 and 197.

The nested_form branch contains an example using the nested_form gem.

The rails2 branch contains older examples of Rails 2 approaches.