aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-05-22 10:44:09 +0200
committerYves Senn <yves.senn@gmail.com>2015-05-22 10:44:09 +0200
commit3873fc5c1c5836d41b288840773ecd1704953f29 (patch)
tree8d1686acefabe604677b1548ceed018d131f30ae /guides/source
parent1214f0b74f6b2910b3f0cdbd1410d0e507e99654 (diff)
parent4311f05124dec96d356757fbe8ccc5006fe851ad (diff)
downloadrails-3873fc5c1c5836d41b288840773ecd1704953f29.tar.gz
rails-3873fc5c1c5836d41b288840773ecd1704953f29.tar.bz2
rails-3873fc5c1c5836d41b288840773ecd1704953f29.zip
Merge pull request #20255 from eliotsykes/link-associations-to-exists-guide
Link association.exists?(...) to AR::Base.exists? guide [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/association_basics.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 412cfd198a..6ff1f8fc43 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -1506,7 +1506,9 @@ The `collection.where` method finds objects within the collection based on the c
##### `collection.exists?(...)`
-The `collection.exists?` method checks whether an object meeting the supplied conditions exists in the collection. It uses the same syntax and options as `ActiveRecord::Base.exists?`.
+The `collection.exists?` method checks whether an object meeting the supplied
+conditions exists in the collection. It uses the same syntax and options as
+[`ActiveRecord::Base.exists?`](http://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-exists-3F).
##### `collection.build(attributes = {}, ...)`
@@ -2004,7 +2006,9 @@ The `collection.where` method finds objects within the collection based on the c
##### `collection.exists?(...)`
-The `collection.exists?` method checks whether an object meeting the supplied conditions exists in the collection. It uses the same syntax and options as `ActiveRecord::Base.exists?`.
+The `collection.exists?` method checks whether an object meeting the supplied
+conditions exists in the collection. It uses the same syntax and options as
+[`ActiveRecord::Base.exists?`](http://api.rubyonrails.org/classes/ActiveRecord/FinderMethods.html#method-i-exists-3F).
##### `collection.build(attributes = {})`