Is there a way to put more items on the first page than the rest of the pages, when using pagination in Rails?
I am using the Kaminari gem to paginate a list of items and have implemented infinite scroll to browse through the pages. I want to limit the number of listings loaded per page when scrolling, but would like the initial page to start with a significant amount. Below is the current call to Kaminari in my listings controller:
@listings = Listing.page(params[:page]).per(25)