mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
fix typo
This commit is contained in:
@@ -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.
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user