diff options
author | Makoto Nihei <nihemak@gmail.com> | 2017-05-25 04:26:54 +0900 |
---|---|---|
committer | Makoto Nihei <nihemak@gmail.com> | 2017-05-25 04:26:54 +0900 |
commit | 43b09b0c9ccc70f6514c441970d0d0ac03ce525b (patch) | |
tree | 467a3546fac89cde49ea5e1cb6230c241906f9c6 /guides | |
parent | 0fa9084a18d1d9c4765c526b740f3f0b550055ca (diff) | |
download | rails-43b09b0c9ccc70f6514c441970d0d0ac03ce525b.tar.gz rails-43b09b0c9ccc70f6514c441970d0d0ac03ce525b.tar.bz2 rails-43b09b0c9ccc70f6514c441970d0d0ac03ce525b.zip |
[ci skip]fix wrong variable name in docs
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/association_basics.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index d8e85497fa..5c7d1f5365 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -1559,7 +1559,7 @@ The `collection.size` method returns the number of objects in the collection. The `collection.find` method finds objects within the collection. It uses the same syntax and options as `ActiveRecord::Base.find`. ```ruby -@available_books = @author.books.find(1) +@available_book = @author.books.find(1) ``` ##### `collection.where(...)` |