Class: Admin::ProfilesController

Inherits:
AdminController
  • Object
show all
Defined in:
app/controllers/push_type/admin/profiles_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



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

def edit
end

#updateObject



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

def update
  if update_user profile_params
    flash[:notice] = 'Profile successfully updated.'
     @user
    redirect_to push_type_admin.edit_profile_path
  else
    render 'edit'
  end
end