gem 'kaminari'
Item.all.page(1).per(50)
Display 10 records per page Kaminari.paginate_array(array).page(params[1]).per(10)
Recommended Posts