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.
B5a793b425c4db1f45c3cdfec5697047?d=identicon&s=25 ss (Guest)
on 2006-06-05 11: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
Ed5307c79ba5b415b1ddfee48319099b?d=identicon&s=25 Ioana Kanda (Guest)
on 2006-06-05 11:18
(Received via mailing list)
68a3e66d80cc90897c960d7dd2a0437b?d=identicon&s=25 Phillip Kast (Guest)
on 2006-06-05 11: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.