Class: Spina::Admin::Conferences::Accounts::PublicUsersController
- Inherits:
-
ApplicationController
- Object
- AdminController
- ApplicationController
- Spina::Admin::Conferences::Accounts::PublicUsersController
- Defined in:
- app/controllers/spina/admin/conferences/accounts/public_users_controller.rb
Overview
Manages user accounts in Spina admin.
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 27 def destroy @user.destroy respond_to do |format| format.html do redirect_to admin_conferences_accounts_public_users_path, success: t('.deleted') end end end |
#edit ⇒ Object
17 |
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 17 def edit; end |
#index ⇒ Object
13 14 15 |
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 13 def index @users = PublicUser.all end |
#update ⇒ Object
19 20 21 22 23 24 25 |
# File 'app/controllers/spina/admin/conferences/accounts/public_users_controller.rb', line 19 def update if @user.update(public_user_params) redirect_to admin_conferences_accounts_public_users_path, success: t('.saved') else render :edit end end |