Skip to content

Commit 0fdd5b5

Browse files
audiosuppp8
andauthored
Update guides/source/active_record_basics.md
Co-authored-by: Petrik de Heus <[email protected]>
1 parent f5090b1 commit 0fdd5b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

guides/source/active_record_basics.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ The above resulting in this SQL:
496496
-- Book.find_by(title: "Metaprogramming Ruby 2")
497497
SELECT "books".* FROM "books" WHERE "books"."title" = ? LIMIT ? [["title", "Metaprogramming Ruby 2"], ["LIMIT", 1]]
498498

499+
-- Book.find(42)
499500
SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 42], ["LIMIT", 1]]
500501
```
501502

0 commit comments

Comments
 (0)