I have a number of objects I would like to paginate using Kaminari. However, on the first page I would also like to show a notification allowing the viewer to create his own
Buddy, I've found the way of get it working using padding:
padding
@page = (params[:page] || '1').to_i @per_page = 4 if @page == "1" Alphabet.page(@page).per(@per_page - 1) else Alphabet.page(@page).per(@per_page).padding(-1) end
This way, first page will return 3 items and the other pages 4 items.