Class: Admin::AccountsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

def index
  @accounts = Account.all
end

#searchObject



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

def search
  @accounts = Account.search params[:query]
  render :index
end

#showObject



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

def show
  @account = Account.find_by_keyword params[:id]
end