Permalink
Browse files

Update paginator docs. Closes #2744.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jeremy committed Nov 5, 2005
1 parent f357929 commit ad4e6114881b124d125d28e7979e4a18e7293e2b
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit ad4e611

Please sign in to comment.