diff options
author | Andrew Olson <anolson@gmail.com> | 2011-09-02 11:48:45 -0400 |
---|---|---|
committer | Andrew Olson <anolson@gmail.com> | 2011-09-02 11:48:45 -0400 |
commit | d20281add192e5afba66e555ce67cf73943b033b (patch) | |
tree | 9434d31b3d17d735b5afd438c1b1473a074748b7 /railties/guides/source/active_record_querying.textile | |
parent | cfd785f910fc914c576133fee263875833ba0c92 (diff) | |
download | rails-d20281add192e5afba66e555ce67cf73943b033b.tar.gz rails-d20281add192e5afba66e555ce67cf73943b033b.tar.bz2 rails-d20281add192e5afba66e555ce67cf73943b033b.zip |
Fixing guides validation errors.
Diffstat (limited to 'railties/guides/source/active_record_querying.textile')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index 4e77a6e803..3a163fb943 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -132,7 +132,7 @@ SELECT * FROM clients ORDER BY clients.id DESC LIMIT 1 <tt>Model.last</tt> returns +nil+ if no matching record is found. No exception will be raised. -h5. +first!+ +h5(#first-1). +first!+ <tt>Model.first!</tt> finds the first record. For example: @@ -149,7 +149,7 @@ SELECT * FROM clients LIMIT 1 <tt>Model.first!</tt> raises +RecordNotFound+ if no matching record is found. -h5. +last!+ +h5(#last-1). +last!+ <tt>Model.last!</tt> finds the last record. For example: |