aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/nested_model_forms.textile
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-12-23 00:15:10 +0100
committerXavier Noria <fxn@hashref.com>2010-12-23 00:15:10 +0100
commit8a3132b8a936bc4d32858d10fd985c3de5e57fd8 (patch)
treee0ae41f2a2fa66754300afa81bbb0aab55b8f702 /railties/guides/source/nested_model_forms.textile
parent55f2e9f898cb6d1c518eaef23592638813c23450 (diff)
parent15ce225ab035bf92e2cb9994db80e60e1cd609bd (diff)
downloadrails-8a3132b8a936bc4d32858d10fd985c3de5e57fd8.tar.gz
rails-8a3132b8a936bc4d32858d10fd985c3de5e57fd8.tar.bz2
rails-8a3132b8a936bc4d32858d10fd985c3de5e57fd8.zip
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties/guides/source/nested_model_forms.textile')
-rw-r--r--railties/guides/source/nested_model_forms.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/nested_model_forms.textile b/railties/guides/source/nested_model_forms.textile
index 1d44da4df1..55694c0eb4 100644
--- a/railties/guides/source/nested_model_forms.textile
+++ b/railties/guides/source/nested_model_forms.textile
@@ -1,6 +1,6 @@
h2. Rails nested model forms
-Creating a form for a model _and_ its associations can become quite tedious. Therefor Rails provides helpers to assist in dealing with the complexities of generating these forms _and_ the required CRUD operations to create, update, and destroy associations.
+Creating a form for a model _and_ its associations can become quite tedious. Therefore Rails provides helpers to assist in dealing with the complexities of generating these forms _and_ the required CRUD operations to create, update, and destroy associations.
In this guide you will:
@@ -219,4 +219,4 @@ You can basically see the +projects_attributes+ hash as an array of attribute ha
NOTE: The reason that +fields_for+ constructed a form which would result in a hash instead of an array is that it won't work for any forms nested deeper than one level deep.
-TIP: You _can_ however pass an array to the writer method generated by +accepts_nested_attributes_for+ if you're using plain Ruby or some other API access. See (TODO) for more info and example. \ No newline at end of file
+TIP: You _can_ however pass an array to the writer method generated by +accepts_nested_attributes_for+ if you're using plain Ruby or some other API access. See (TODO) for more info and example.