aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorMakoto Nihei <nihemak@gmail.com>2017-05-25 04:26:54 +0900
committerMakoto Nihei <nihemak@gmail.com>2017-05-25 04:26:54 +0900
commit43b09b0c9ccc70f6514c441970d0d0ac03ce525b (patch)
tree467a3546fac89cde49ea5e1cb6230c241906f9c6 /guides/source
parent0fa9084a18d1d9c4765c526b740f3f0b550055ca (diff)
downloadrails-43b09b0c9ccc70f6514c441970d0d0ac03ce525b.tar.gz
rails-43b09b0c9ccc70f6514c441970d0d0ac03ce525b.tar.bz2
rails-43b09b0c9ccc70f6514c441970d0d0ac03ce525b.zip
[ci skip]fix wrong variable name in docs
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/association_basics.md2
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(...)`