Skip to content

Commit addf281

Browse files
committed
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.
1 parent ee88f41 commit addf281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_querying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ SELECT books.* FROM books
14591459
INNER JOIN reviews ON reviews.book_id = books.id
14601460
```
14611461

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.
14631463

14641464
##### Joining Nested Associations (Single Level)
14651465

0 commit comments

Comments
 (0)