Class: Admin::SettingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#editObject



12
13
14
# File 'app/controllers/admin/settings_controller.rb', line 12

def edit
  
end

#updateObject



16
17
18
19
20
21
# File 'app/controllers/admin/settings_controller.rb', line 16

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."
  end
  render 'edit'
end