Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Article Pagination using kaminari #26

Merged
merged 1 commit into from Jun 27, 2011

Conversation

morganp
Copy link

@morganp morganp commented Jun 27, 2011

Pagination for the all articles view, using the kaminari gem.

@jordanbyron
Copy link

I've never used kaminari before. How did you hear about it? Has anyone had any experience using kaminari before? I've used will_paginate and it's always worked for me.

I'm especially curious how it will work if we try infinite scrolling.

On Jun 27, 2011, at 5:35 PM, morganp wrote:

Pagination for the all articles view, using the kaminari gem.

Reply to this email directly or view it on GitHub:
https://github.com/rmu/flow/pull/26

@carlosantoniodasilva
Copy link
Member

I've heard about it, read a bit its code, and it sounds quite nice. There is also a railscast about it. It is basically a bunch of scopes with some view helpers if I remember correctly.

I'd use it in new projects mainly because will_paginate haven't had any update for a few months - the Rails 3 compatible version is still pre. So, if we don't want to build this pagination from scratch, I think it's the way to go.

About the infinite scrolling, I believe it should work the same way as will paginate, or we could just use limit + offset by hand and increment a page param - sth like that.

jordanbyron pushed a commit that referenced this pull request Jun 27, 2011
Article Pagination using kaminari
@jordanbyron jordanbyron merged commit 9b834a1 into mendicant-original:master Jun 27, 2011
@jordanbyron
Copy link

Cool. Well that is good enough for me to merge it.

I've wanted to move away from will_paginate for a while now, but just haven't done the research to find something that works. AKA I'm lazy.

@morganp
Copy link
Author

morganp commented Jun 27, 2011

I first saw it mentioned here. It seemed to be that will_paginate has not been maintained for a while and has not had an official (non pre) release for rails 3. My understanding is that the infinite scrolling is an ajax layer that just calls the next page and appends the contents to the current page, so should probably work ok with kaminari.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants