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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
alexkwolfe-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Apr-02 23:25 UTC
Re: paginating_find view example?
Try this: <%= paginating_links(@users) %> Take a look at the link helpers: http://svn.cardboardrocket.com/paginating_find/lib/paging_helper.rb On Apr 2, 2:43 pm, "jko170" <jko...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m using thepaginating_findplugin 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---