mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
A Relation is not a collection of records. So let's not use the term "record"
This commit is contained in:
parent
034982ef22
commit
a802fa3588
1 changed files with 2 additions and 2 deletions
|
@ -239,12 +239,12 @@ Active Record provides a rich API for accessing data within a database. Below
|
|||
are a few examples of different data access methods provided by Active Record.
|
||||
|
||||
```ruby
|
||||
# return a collection with all records
|
||||
# return a collection with all users
|
||||
users = User.all
|
||||
```
|
||||
|
||||
```ruby
|
||||
# return the first record
|
||||
# return the first user
|
||||
user = User.first
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue