Skip to content

Commit f5090b1

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

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
@@ -493,6 +493,7 @@ book = Book.find(42)
493493
The above resulting in this SQL:
494494

495495
```sql
496+
-- Book.find_by(title: "Metaprogramming Ruby 2")
496497
SELECT "books".* FROM "books" WHERE "books"."title" = ? LIMIT ? [["title", "Metaprogramming Ruby 2"], ["LIMIT", 1]]
497498

498499
SELECT "books".* FROM "books" WHERE "books"."id" = ? LIMIT ? [["id", 42], ["LIMIT", 1]]

0 commit comments

Comments
 (0)