We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59566ca commit 12ff3eaCopy full SHA for 12ff3ea
guides/source/association_basics.md
@@ -3110,7 +3110,7 @@ class Author < ApplicationRecord
3110
end
3111
```
3112
3113
-By default, querying `@auth books.size` results in a database call to perform a
+By default, querying `author.books.size` results in a database call to perform a
3114
`COUNT(*)` query. To optimize this, you can add a counter cache to the
3115
_belonging_ model (in this case, `Book`). This way, Rails can return the count
3116
directly from the cache without querying the database.
0 commit comments