Forum: Ruby on Rails paginating_find view example?

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.
1df9fc8ddf084661265bbae74a8d0b43?d=identicon&s=25 jko170 (Guest)
on 2007-04-02 21:45
(Received via mailing list)
I'm using the paginating_find plugin and I believe I have my
controller setup correctly:

@users = Users.find :all,
                               :page => {:size => 20},
                               :order => "created_at DESC"

I'm confused though on how to setup the view. This is what I tried:

<%= link_to 'next', :page => @users.next_page %>

Can anyone please post an example? Thanks in advance.
72d403ad3c243379dfdb5da3e6179c05?d=identicon&s=25 alexkwolfe@gmail.com (Guest)
on 2007-04-03 01:27
(Received via mailing list)
Try this:
<%= paginating_links(@users) %>

Take a look at the link helpers:
http://svn.cardboardrocket.com/paginating_find/lib...
This topic is locked and can not be replied to.