mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Update paginator docs. Closes #2744.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2878 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user