aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-08-22 01:58:12 -0700
committerZachary Scott <e@zzak.io>2014-08-22 01:58:12 -0700
commit880a1d8ac96669da92d86873b4203b1f9194e21a (patch)
tree3756273c195f3ef5c605b68c1dea2683751a5f42 /guides/source
parent58d9888e1efb16c36f3ab4a6d88644df845c0c84 (diff)
parentb4a9f00a45d347dd24469e107a6ebe1008b0ca74 (diff)
downloadrails-880a1d8ac96669da92d86873b4203b1f9194e21a.tar.gz
rails-880a1d8ac96669da92d86873b4203b1f9194e21a.tar.bz2
rails-880a1d8ac96669da92d86873b4203b1f9194e21a.zip
Merge pull request #11859 from zzak/nested_model_forms_guide
See AR::Associations for greater detail in Nested Model Forms Guide [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/nested_model_forms.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/guides/source/nested_model_forms.md b/guides/source/nested_model_forms.md
index 4f0634d955..f0ee34cfb1 100644
--- a/guides/source/nested_model_forms.md
+++ b/guides/source/nested_model_forms.md
@@ -1,4 +1,4 @@
-Rails nested model forms
+Rails Nested Model Forms
========================
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.
@@ -54,6 +54,9 @@ class Person < ActiveRecord::Base
end
```
+NOTE: For greater detail on associations see [Active Record Associations](association_basics.html).
+For a complete reference on associations please visit the API documentation for [ActiveRecord::Associations::ClassMethods](http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html).
+
### Custom model
As you might have inflected from this explanation, you _don't_ necessarily need an ActiveRecord::Base model to use this functionality. The following examples are sufficient to enable the nested model form behavior: