Class: Admin::UsersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
# File 'app/controllers/admin/users_controller.rb', line 2

def index
  @users = User.all
end

#searchObject



6
7
8
9
# File 'app/controllers/admin/users_controller.rb', line 6

def search
  @users = User.search params[:query]
  render :index
end

#showObject



11
12
13
# File 'app/controllers/admin/users_controller.rb', line 11

def show
  @user = User.find params[:id]
end