aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/association_basics.textile
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2010-12-02 13:31:11 +1100
committerRyan Bigg <radarlistener@gmail.com>2010-12-02 13:31:11 +1100
commitbde7d2351edf558ff5c2a3fb8d2822d5f8a2ae47 (patch)
tree100382a5e5636e28b8e3de08af5521175ac10b40 /railties/guides/source/association_basics.textile
parent697f734455753ad23ba719539bf961c6f1bc45d2 (diff)
downloadrails-bde7d2351edf558ff5c2a3fb8d2822d5f8a2ae47.tar.gz
rails-bde7d2351edf558ff5c2a3fb8d2822d5f8a2ae47.tar.bz2
rails-bde7d2351edf558ff5c2a3fb8d2822d5f8a2ae47.zip
Association guide: change wording to say that build is for initialization, create is for creating
Diffstat (limited to 'railties/guides/source/association_basics.textile')
-rw-r--r--railties/guides/source/association_basics.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/association_basics.textile b/railties/guides/source/association_basics.textile
index 2043daa4ed..62abc40c81 100644
--- a/railties/guides/source/association_basics.textile
+++ b/railties/guides/source/association_basics.textile
@@ -550,7 +550,7 @@ build_customer
create_customer
</ruby>
-NOTE: When creating a new +belongs_to+ or +has_one+ association you must use the +build_+ prefix to build the association, rather than the +association.build+ method that would be used for +has_many+ or +has_and_belongs_to_many+ associations.
+NOTE: When initializing a new +has_one+ or +belongs_to+ association you must use the +build_+ prefix to build the association, rather than the +association.build+ method that would be used for +has_many+ or +has_and_belongs_to_many+ associations. To create one, use the +create_+ prefix.
h6(#belongs_to-association). <tt><em>association</em>(force_reload = false)</tt>
@@ -819,7 +819,7 @@ build_account
create_account
</ruby>
-NOTE: When creating a new +has_one+ or +belongs_to+ association you must use the +build_+ prefix to build the association, rather than the +association.build+ method that would be used for +has_many+ or +has_and_belongs_to_many+ associations.
+NOTE: When initializing a new +has_one+ or +belongs_to+ association you must use the +build_+ prefix to build the association, rather than the +association.build+ method that would be used for +has_many+ or +has_and_belongs_to_many+ associations. To create one, use the +create_+ prefix.
h6(#has_one-association). <tt><em>association</em>(force_reload = false)</tt>