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.
jko170 (Guest)
on 2007-04-02 23: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.
(Guest)
on 2007-04-03 03: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.