What do you think it's better for pagination?

will_paginate or kaminari?

I’ve used both, but prefer kaminari.

I like kaminari’s concept of scopes and using views rather than the
method
will_paginate uses.

On 9 December 2011 14:03, Tim S. [email protected] 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.

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.

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 Fri, Dec 9, 2011 at 6:15 PM, IAmNan [email protected] 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

while will_paginate depends on none.

https://github.com/mislav/will_paginate/blob/master/will_paginate.gemspec

Is that a relevant element in a comparison?

Peter

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs