Rails "Load more..." instead of pagination.
Posted
by Joseph Silvashy
on Stack Overflow
See other posts from Stack Overflow
or by Joseph Silvashy
Published on 2010-03-23T05:46:18Z
Indexed on
2010/03/23
5:53 UTC
Read the original article
Hit count: 386
I have a list of elements, and I've been using will_paginate
up until now, but I'd like to have something like "load more..." at the bottom of the list. Is there an easy way to accomplish this using will_paginate
or do I need to resort to some other method here?
From what I know this is a better route anyhow because then I don't need a SQL count of the records. And it really doesn't matter if there are like 9,847 pages, nobody would need the records beyond the first couple pages anyhow.
© Stack Overflow or respective owner