aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/association_basics.md
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2014-08-27 22:34:52 +0900
committeryui-knk <spiketeika@gmail.com>2014-08-27 22:34:52 +0900
commit277355ade04eabd56fa28c5a7ffa617bbf73b31e (patch)
treed955118a5b34712e9095c84969536d99ae8a3c6e /guides/source/association_basics.md
parent35b1c4f85ce53b7203ae589a767c3f1f6d8412fb (diff)
downloadrails-277355ade04eabd56fa28c5a7ffa617bbf73b31e.tar.gz
rails-277355ade04eabd56fa28c5a7ffa617bbf73b31e.tar.bz2
rails-277355ade04eabd56fa28c5a7ffa617bbf73b31e.zip
[ci skip] Fix typo of `collection_singular_ids=` method.
Diffstat (limited to 'guides/source/association_basics.md')
-rw-r--r--guides/source/association_basics.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index daf4113b66..08f7ebf555 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -1323,7 +1323,7 @@ When you declare a `has_many` association, the declaring class automatically gai
* `collection.destroy(object, ...)`
* `collection=objects`
* `collection_singular_ids`
-* `collection_singular_ids=ids`
+* `collection_singular_ids=(ids)`
* `collection.clear`
* `collection.empty?`
* `collection.size`
@@ -1411,7 +1411,7 @@ The `collection_singular_ids` method returns an array of the ids of the objects
@order_ids = @customer.order_ids
```
-##### `collection_singular_ids=ids`
+##### `collection_singular_ids=(ids)`
The `collection_singular_ids=` method makes the collection contain only the objects identified by the supplied primary key values, by adding and deleting as appropriate.
@@ -1812,7 +1812,7 @@ When you declare a `has_and_belongs_to_many` association, the declaring class au
* `collection.destroy(object, ...)`
* `collection=objects`
* `collection_singular_ids`
-* `collection_singular_ids=ids`
+* `collection_singular_ids=(ids)`
* `collection.clear`
* `collection.empty?`
* `collection.size`
@@ -1907,7 +1907,7 @@ The `collection_singular_ids` method returns an array of the ids of the objects
@assembly_ids = @part.assembly_ids
```
-##### `collection_singular_ids=ids`
+##### `collection_singular_ids=(ids)`
The `collection_singular_ids=` method makes the collection contain only the objects identified by the supplied primary key values, by adding and deleting as appropriate.