Skip to content

Commit 0e313bb

Browse files
authored
Update active_record_basics.md
typo here book = Book.find_by(title: "Metaprogramming Ruby 2") returns a list of records:SELECT "books".* FROM "books" WHERE "books"."author" = ? LIMIT ? [["author", "J.R.R. Tolkien"], ["LIMIT", 1]] changed to: "title" = ? LIMIT ? [["title", "Metaprogramming Ruby 2"]
1 parent 8bac99a commit 0e313bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_record_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ book = Book.find(42)
493493
The above resulting in this SQL:
494494

495495
```sql
496-
SELECT "books".* FROM "books" WHERE "books"."author" = ? LIMIT ? [["author", "J.R.R. Tolkien"], ["LIMIT", 1]]
496+
SELECT "books".* FROM "books" WHERE "books"."title" = ? LIMIT ? [["title", "Metaprogramming Ruby 2"], ["LIMIT", 1]]
497497

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

0 commit comments

Comments
 (0)