mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
updated active record querying guide to standardize on first_name for Client
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user