public
Description: Various ways to handle multi-model forms in Rails.
Homepage:
Clone URL: git://github.com/ryanb/complex-form-examples.git
ryanb (author)
Wed Aug 05 12:00:26 -0700 2009
commit  4e4623659ba56cc338eb25bde8d1af55d4fb026c
tree    7bac46fd1adc675a3f9b75033e5578a352430062
parent  3bb8ec1ae9964f09fa562d27388a4af48d62a9df
name age message
file .gitignore Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
file LICENSE Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
file README.rdoc Tue Aug 04 16:47:42 -0700 2009 fixing syntax in readme [ryanb]
file Rakefile Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
directory app/ Loading commit data...
directory config/ Mon Aug 03 17:51:03 -0700 2009 updating to Rails 2.3.3 [ryanb]
directory db/ Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
directory doc/ Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
directory public/
directory script/ Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
directory test/ Mon Aug 03 17:51:03 -0700 2009 updating to Rails 2.3.3 [ryanb]
README.rdoc

Complex Form Examples

This master branch is a simple solution for the multi-model form problem using the latest accepts_nested_attributes_for available in Rails 2.3.

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