will_paginate or kaminari? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I''ve used both, but prefer kaminari. I like kaminari''s concept of scopes and using views rather than the method will_paginate uses. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/iZ21CEVHu0UJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 9 December 2011 14:03, Tim Shaffer <timshaffer-BUHhN+a2lJ4@public.gmane.org> wrote:> I''ve used both, but prefer kaminari. > > I like kaminari''s concept of scopes and using views rather than the method > will_paginate uses.I''ve used both. In will_paginate I often use the helper "page_entries_info" but I don''t find it in kaminari. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Assuming you''re just using ActiveRecord, it depends what fits your implementation preference better. I''ve used will_paginate much more, it''s solid and well vetted and I''m familiar with it. Sometimes I''ll implement my own pagination though, which isn''t hard. RyanB does a little comparison at the end of this http://railscasts.com/episodes/51-will-paginate-revised If you didn''t know this already, you can see an aggregate of how many people are using one or the other and spot trends in the code maintenance at ruby-toolbox. https://www.ruby-toolbox.com/categories/pagination d. On Dec 9, 10:12 am, Mauro <mrsan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 9 December 2011 14:03, Tim Shaffer <timshaf...-BUHhN+a2lJ4@public.gmane.org> wrote: > > > I''ve used both, but prefer kaminari. > > > I like kaminari''s concept of scopes and using views rather than the method > > will_paginate uses. > > I''ve used both. > In will_paginate I often use the helper "page_entries_info" but I > don''t find it in kaminari.-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter Vandenabeele
2011-Dec-09 22:11 UTC
Re: Re: what do you think it''s better for pagination?
On Fri, Dec 9, 2011 at 6:15 PM, IAmNan <dgerton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > If you didn''t know this already, you can see an aggregate of how many > people are using one or the other and spot trends in the code > maintenance at ruby-toolbox. > > https://www.ruby-toolbox.com/categories/pagination > >What struck me here is that Kaminari depends on a bunch of gems * https://www.ruby-toolbox.com/projects/kaminari * https://github.com/amatsuda/kaminari/blob/master/kaminari.gemspec while will_paginate depends on none. * https://www.ruby-toolbox.com/projects/will_paginate * https://github.com/mislav/will_paginate/blob/master/will_paginate.gemspec Is that a relevant element in a comparison? Peter -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It can be a problem... but I don''t think so in this case. According to their gemspec, they are comparable. Notice that except for dependency on railties, which you are most likely including in your own project anyway, the rest in Kaminari are for the development environment. If ever I can''t decide, I go with the one that has the better documentation. d. On Dec 9, 2:11 pm, Peter Vandenabeele <pe...-jNuWw7i2w7syMbTcgqFhxg@public.gmane.org> wrote:> On Fri, Dec 9, 2011 at 6:15 PM, IAmNan <dger...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > If you didn''t know this already, you can see an aggregate of how many > > people are using one or the other and spot trends in the code > > maintenance at ruby-toolbox. > > >https://www.ruby-toolbox.com/categories/pagination > > What struck me here is that Kaminari depends on a bunch of gems > > *https://www.ruby-toolbox.com/projects/kaminari > *https://github.com/amatsuda/kaminari/blob/master/kaminari.gemspec > > while will_paginate depends on none. > > *https://www.ruby-toolbox.com/projects/will_paginate > *https://github.com/mislav/will_paginate/blob/master/will_paginate.gem... > > Is that a relevant element in a comparison? > > Peter-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.