Class: Admin::AccountsController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::AccountsController
- Defined in:
- app/controllers/admin/accounts_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
2 3 4 |
# File 'app/controllers/admin/accounts_controller.rb', line 2 def index @accounts = Account.all end |
#search ⇒ Object
6 7 8 9 |
# File 'app/controllers/admin/accounts_controller.rb', line 6 def search @accounts = Account.search params[:query] render :index end |
#show ⇒ Object
11 12 13 |
# File 'app/controllers/admin/accounts_controller.rb', line 11 def show @account = Account.find_by_keyword params[:id] end |