Class: Admin::UsersController

Inherits:
AdminController show all
Defined in:
app/controllers/admin/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /admin/users

This action retrieves all users with admin privileges. It assigns the result to the @users instance variable, which can be used in the corresponding view to display the list of admin users.



16
17
18
# File 'app/controllers/admin/users_controller.rb', line 16

def index
  @users = User.where(admin: true)
end