aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-03-26 00:13:37 +0100
committerXavier Noria <fxn@hashref.com>2011-03-26 00:13:37 +0100
commiteb8beb32b072f581720111d87855610403b3bb0c (patch)
treefc347107a743e4d1d66c996198b8e32e6c4a0388 /railties
parent9d9b873b9501f5fc90c0b6a4a550c5e29fc742a5 (diff)
parent6ee5d9244c418ab51d48bcda444ce50b1ad2a4e7 (diff)
downloadrails-eb8beb32b072f581720111d87855610403b3bb0c.tar.gz
rails-eb8beb32b072f581720111d87855610403b3bb0c.tar.bz2
rails-eb8beb32b072f581720111d87855610403b3bb0c.zip
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/active_record_querying.textile6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile
index 484ba796bd..2c5d9e67e3 100644
--- a/railties/guides/source/active_record_querying.textile
+++ b/railties/guides/source/active_record_querying.textile
@@ -76,7 +76,7 @@ Primary operation of <tt>Model.find(options)</tt> can be summarized as:
h4. Retrieving a Single Object
-Active Record lets you retrieve a single object using three different ways.
+Active Record lets you retrieve a single object using five different ways.
h5. Using a Primary Key
@@ -132,7 +132,7 @@ SELECT * FROM clients ORDER BY clients.id DESC LIMIT 1
h5. +first!+
-<tt>Model.first!</tt> finds the first record matched by the supplied options. For example:
+<tt>Model.first!</tt> finds the first record. For example:
<ruby>
client = Client.first!
@@ -149,7 +149,7 @@ SELECT * FROM clients LIMIT 1
h5. +last!+
-<tt>Model.last!</tt> finds the last record matched by the supplied options. For example:
+<tt>Model.last!</tt> finds the last record. For example:
<ruby>
client = Client.last!