Skip to content

Commit 1d703bb

Browse files
authored
Merge pull request rails#54968 from ancao-apvn/fix-typo-in-active-record-query-interface-guide
[ci skip] Fix a typo in the Active Record Query Interface guide
2 parents dc11693 + da317b5 commit 1d703bb

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
@@ -199,7 +199,7 @@ SELECT * FROM customers WHERE (customers.id IN (1,10))
199199

200200
WARNING: The `find` method will raise an `ActiveRecord::RecordNotFound` exception unless a matching record is found for **all** of the supplied primary keys.
201201

202-
If your table uses a composite primary key, you'll need to pass find an array to find a single item. For instance, if customers were defined with `[:store_id, :id]` as a primary key:
202+
If your table uses a composite primary key, you'll need to pass in an array to find a single item. For instance, if customers were defined with `[:store_id, :id]` as a primary key:
203203

204204
```irb
205205
# Find the customer with store_id 3 and id 17

0 commit comments

Comments
 (0)