1
0
Fork 0
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:
Derek Willis 2010-06-13 22:36:42 -04:00
parent 1c95b67857
commit 4b05de19aa

View file

@ -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: