Reputation: 715
I have an app which has an index page that shows currently 10 search results. Rather than doing the standard lazy load with javascript, similar to the Railscast where new objects are shown when the user gets to the bottom of the page, I would like to have to page have a button on the bottom. When that button is clicked, I would like the next 10 objects from the search results to show and so on. Is there a tutorial for this/how would I do this?
Upvotes: 0
Views: 1274
Reputation: 2328
you should use gem like
https://github.com/amatsuda/kaminari or https://github.com/mislav/will_paginate.
Upvotes: 2