diff options
author | Eliot Sykes <eliotsykes@gmail.com> | 2015-05-22 08:06:36 +0100 |
---|---|---|
committer | Eliot Sykes <eliotsykes@gmail.com> | 2015-05-22 09:27:51 +0100 |
commit | 4311f05124dec96d356757fbe8ccc5006fe851ad (patch) | |
tree | 8d1686acefabe604677b1548ceed018d131f30ae /guides/source | |
parent | 1214f0b74f6b2910b3f0cdbd1410d0e507e99654 (diff) | |
download | rails-4311f05124dec96d356757fbe8ccc5006fe851ad.tar.gz rails-4311f05124dec96d356757fbe8ccc5006fe851ad.tar.bz2 rails-4311f05124dec96d356757fbe8ccc5006fe851ad.zip |
Link association.exists?(...) to API docs [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/association_basics.md | 8 |
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 = {})` |