Initial admin/user index/show
This commit is contained in:
29
app/controllers/admin/users_controller.rb
Normal file
29
app/controllers/admin/users_controller.rb
Normal file
@@ -0,0 +1,29 @@
|
||||
class Admin::UsersController < ApplicationController
|
||||
before_action :authorize!
|
||||
before_action :set_user, only: [ :show, :edit ]
|
||||
|
||||
def index
|
||||
@users = User.all.order(:lastname, :firstname)
|
||||
end
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
def update
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_user
|
||||
@user = User.find(params[:id])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user