diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-05 02:10:29 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-05 02:10:29 +0000 |
commit | ad4e6114881b124d125d28e7979e4a18e7293e2b (patch) | |
tree | e8e7e13c843ccc5f3fdae38f10152f8d06ee9368 | |
parent | f35792974a4148d95b117777290dd720595cb48e (diff) | |
download | rails-ad4e6114881b124d125d28e7979e4a18e7293e2b.tar.gz rails-ad4e6114881b124d125d28e7979e4a18e7293e2b.tar.bz2 rails-ad4e6114881b124d125d28e7979e4a18e7293e2b.zip |
Update paginator docs. Closes #2744.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/pagination.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/pagination.rb b/actionpack/lib/action_controller/pagination.rb index 9a3584bfab..7e4b4754f2 100644 --- a/actionpack/lib/action_controller/pagination.rb +++ b/actionpack/lib/action_controller/pagination.rb @@ -49,7 +49,8 @@ module ActionController # def list # @person_pages = Paginator.new self, Person.count, 10, @params['page'] # @people = Person.find :all, :order => 'last_name, first_name', - # :conditions => @person_pages.current.to_sql + # :limit => @person_pages.items_per_page, + # :offset => @person_pages.current.offset # end # # Explicitly creates the paginator from the previous example and uses |