public
Fork of ryanb/complex-form-examples
Description: Simple Rails application which shows the use of NestedAttributes and AutosaveAssociation.
Homepage:
Clone URL: git://github.com/alloy/complex-form-examples.git
alloy (author)
Thu Mar 12 07:05:54 -0700 2009
commit  58fccc44d066e19fa92cc8bb327ab0ace52ae33a
tree    7991ffbda05ce8b45c1450d59a2567cb970e1b4e
parent  a618da237059d52a2cf37c7197a9b55990b85aea
name age message
file .gitignore Wed Aug 20 01:51:11 -0700 2008 Cleanup the plugin checkouts. [alloy]
file .gitmodules Wed Feb 04 00:34:20 -0800 2009 Updated vendored Rails to use origin edge inste... [alloy]
file LICENSE Mon Mar 09 14:48:32 -0700 2009 Updated README and LICENSE. Removed useless tes... [alloy]
file README Mon Mar 09 14:48:32 -0700 2009 Updated README and LICENSE. Removed useless tes... [alloy]
file Rakefile Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
directory app/ Mon Mar 09 14:38:39 -0700 2009 added some files Signed-off-by: Eloy Duran <el... [evensoul]
directory config/ Tue Aug 19 16:57:03 -0700 2008 Toying with fields_for a has_many association a... [alloy]
directory db/ Mon Mar 09 14:38:39 -0700 2009 added some files Signed-off-by: Eloy Duran <el... [evensoul]
directory doc/ Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
directory public/ Thu Mar 12 07:05:54 -0700 2009 Oops, I messed up. [alloy]
directory script/ Fri Jul 18 14:10:24 -0700 2008 initial import [ryanb]
directory test/ Mon Mar 09 14:52:41 -0700 2009 Made projects_controller tests green. Removed l... [alloy]
directory vendor/ Mon Mar 09 14:38:03 -0700 2009 preparation Signed-off-by: Eloy Duran <eloy.de... [evensoul]
README
Complex Form Examples - 2 level nesting
----------------------------------------

Example of nested forms with 2 level nesting.

- We've extracted html chunks into javascript variables in the head to avoid repetition and double javascript escaping 
(escape_javascript).
- Events work with delegate because it's easier when adding dynamic html parts.
- Most of the javascript is extracted to application.js

Rails is vendored using a Git submodule to official repository:
git://github.com/rails/rails.git