diff options
author | Makoto Nihei <nihemak@gmail.com> | 2017-05-27 12:03:57 +0900 |
---|---|---|
committer | Makoto Nihei <nihemak@gmail.com> | 2017-05-27 12:03:57 +0900 |
commit | 7cceb729e64b8eef028dab042b79d8def0730372 (patch) | |
tree | 270001a732a08e868d26717951231b278a13ddca /guides | |
parent | d93cd4357bacf32dab0f03a9a0abc4144fdcdf16 (diff) | |
download | rails-7cceb729e64b8eef028dab042b79d8def0730372.tar.gz rails-7cceb729e64b8eef028dab042b79d8def0730372.tar.bz2 rails-7cceb729e64b8eef028dab042b79d8def0730372.zip |
[ci skip]fix wrong variable name in docs
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_querying.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index d1cbe506b4..412ad0b006 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -150,7 +150,7 @@ The `take` method returns `nil` if no record is found and no exception will be r You can pass in a numerical argument to the `take` method to return up to that number of results. For example ```ruby -client = Client.take(2) +clients = Client.take(2) # => [ # #<Client id: 1, first_name: "Lifo">, # #<Client id: 220, first_name: "Sara"> @@ -189,7 +189,7 @@ If your [default scope](active_record_querying.html#applying-a-default-scope) co You can pass in a numerical argument to the `first` method to return up to that number of results. For example ```ruby -client = Client.first(3) +clients = Client.first(3) # => [ # #<Client id: 1, first_name: "Lifo">, # #<Client id: 2, first_name: "Fifo">, @@ -240,7 +240,7 @@ If your [default scope](active_record_querying.html#applying-a-default-scope) co You can pass in a numerical argument to the `last` method to return up to that number of results. For example ```ruby -client = Client.last(3) +clients = Client.last(3) # => [ # #<Client id: 219, first_name: "James">, # #<Client id: 220, first_name: "Sara">, |