Intalled pagy and applyed to admin/users index
This commit is contained in:
@@ -4,6 +4,7 @@ class Admin::UsersController < ApplicationController
|
||||
|
||||
def index
|
||||
@users = User.all.order(:lastname, :firstname)
|
||||
@pagy, @records = pagy(@users, limit: 20)
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
Reference in New Issue
Block a user