You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Guides: AR querying english text to match code behavior
The code: Book.joins(:author, :reviews)
This code will return books that have an author and at least 1
review.
English text implies it returns the book and the author:
"return all books with their author .."
Changing the text to imply it returns books with an author.
Copy file name to clipboardExpand all lines: guides/source/active_record_querying.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1459,7 +1459,7 @@ SELECT books.* FROM books
1459
1459
INNER JOIN reviews ONreviews.book_id=books.id
1460
1460
```
1461
1461
1462
-
Or, in English: "return all books with their author that have at least one review". Note again that books with multiple reviews will show up multiple times.
1462
+
Or, in English: "return all books that have an author and at least one review". Note again that books with multiple reviews will show up multiple times.
0 commit comments