diff options
author | Michael Hutchinson <git@mhutchinson.com> | 2010-07-14 03:36:55 -0700 |
---|---|---|
committer | Michael Hutchinson <git@mhutchinson.com> | 2010-07-14 03:36:55 -0700 |
commit | 438bff6ccd0ba495c684a0377fd94cf302e340c5 (patch) | |
tree | 492f7a4e0a92055b0a21e7fb739e3e41c0e1e51c /railties/guides/source | |
parent | 6de6fa80106bd1a5b1b2369891536ec36e94037a (diff) | |
download | rails-438bff6ccd0ba495c684a0377fd94cf302e340c5.tar.gz rails-438bff6ccd0ba495c684a0377fd94cf302e340c5.tar.bz2 rails-438bff6ccd0ba495c684a0377fd94cf302e340c5.zip |
Active Record Query Interface Guide: Corrected the explanation for the OFFSET example.
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index 8c43a02c96..2e23604838 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -465,7 +465,7 @@ Or chaining both +limit+ and +offset+: Client.limit(5).offset(5) </ruby> -This code will return a maximum of 5 clients and because it specifies an offset this time, it will return these records starting from the 5th client in the clients table. The SQL looks like: +This code will return a maximum of 5 clients beginning with the 6th client in the clients table, skipping the first five clients as specified by the offset. The SQL looks like: <sql> SELECT * FROM clients LIMIT 5, 5 |