aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-05-25 07:52:58 +0900
committerGitHub <noreply@github.com>2017-05-25 07:52:58 +0900
commit61434723faa42561a6626449233d1179b1e0a48a (patch)
tree467a3546fac89cde49ea5e1cb6230c241906f9c6
parent0fa9084a18d1d9c4765c526b740f3f0b550055ca (diff)
parent43b09b0c9ccc70f6514c441970d0d0ac03ce525b (diff)
downloadrails-61434723faa42561a6626449233d1179b1e0a48a.tar.gz
rails-61434723faa42561a6626449233d1179b1e0a48a.tar.bz2
rails-61434723faa42561a6626449233d1179b1e0a48a.zip
Merge pull request #29213 from nihemak/fix-docs-has-many
[ci skip]fix wrong variable name in docs
-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(...)`