From 438bff6ccd0ba495c684a0377fd94cf302e340c5 Mon Sep 17 00:00:00 2001 From: Michael Hutchinson Date: Wed, 14 Jul 2010 03:36:55 -0700 Subject: Active Record Query Interface Guide: Corrected the explanation for the OFFSET example. --- railties/guides/source/active_record_querying.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/guides') 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) -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: SELECT * FROM clients LIMIT 5, 5 -- cgit v1.2.3