Class: Admin::SettingsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::SettingsController
- Defined in:
- app/controllers/admin/settings_controller.rb
Instance Method Summary collapse
Instance Method Details
#edit ⇒ Object
6 7 8 |
# File 'app/controllers/admin/settings_controller.rb', line 6 def edit end |
#update ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'app/controllers/admin/settings_controller.rb', line 10 def update if @current_user.update_attributes(params[:spud_user].slice :login,:first_name,:last_name,:email,:password,:password_confirmation,:time_zone) flash[:notice] = "User settings saved successfully." redirect_to admin_root_path else render 'edit' end end |