mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
updated active record querying guide to standardize on first_name for Client
This commit is contained in:
parent
1c95b67857
commit
4b05de19aa
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ Using <tt>Model.find(primary_key)</tt>, you can retrieve the object correspondin
|
|||
<ruby>
|
||||
# Find the client with primary key (id) 10.
|
||||
client = Client.find(10)
|
||||
=> #<Client id: 10, name: => "Ryan">
|
||||
=> #<Client id: 10, first_name: => "Ryan">
|
||||
</ruby>
|
||||
|
||||
SQL equivalent of the above is:
|
||||
|
|
Loading…
Reference in a new issue