Reputation: 1837
Laravel has a pagintaion function, it's very simple to generate pagination info.
$users = DB::table('users')->paginate(15);
Does rails has something like that?
Upvotes: 0
Views: 69
Reputation: 115541
You have kaminari for instance, with the following syntax:
User.page(7).per(50)
There is also will_paginate
Upvotes: 2