Class: Admin::UsersController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#authenticate_user!, #current_user, #load_settings

Instance Method Details

#editObject


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

def edit
end

#updateObject


11
12
13
14
15
16
17
18
# File 'app/controllers/admin/users_controller.rb', line 11

def update
  if @user.update(user_params)
    redirect_to edit_admin_user_path(@user), notice: 'Profile updated!'
  else
    flash.now.alert = 'Error updating profile.'
    render :edit
  end
end