Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit ad4e6114881b124d125d28e7979e4a18e7293e2b 1 parent f357929
Jeremy Kemper jeremy authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/lib/action_controller/pagination.rb
3  actionpack/lib/action_controller/pagination.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.