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
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
class ApplicationController < ActionController::Base
|
||||
include Pagy::Backend
|
||||
|
||||
before_action :set_current_request_details
|
||||
before_action :authenticate_user!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user