Forum: Ruby on Rails Pagination, how to in rails?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
ss (Guest)
on 2006-06-05 13:09
Hi,

Im creating a few reports for a system using ind_by_sql

Are there any built in features that I can use to paginate the results
and how can this be achived?

Thanks
Ioana K. (Guest)
on 2006-06-05 13:18
(Received via mailing list)
Phillip K. (Guest)
on 2006-06-05 13:21
(Received via mailing list)
Indeed there is, in a few options from automagic to
manual. If you're using find_by_sql, you'll probably
need to instantiate a Paginator object by hand. Check
out "Custom/"classic" pagination":

http://api.rubyonrails.org/classes/ActionControlle...

hth,
phil
This topic is locked and can not be replied to.