how to use kaminari from array
rubyrails
tomoyukikashiro
You can generate pager object using kaminari from array object.
# select admin user and push to array
user_array = User.select_admin_user
@pager = Kaminari.paginate_array(user_array).page(params[:page]).per(20)
then you can use like this.
<%= paginate @pager %>