Class: Protected::UsersController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#pagination_params, #set_cache_buster

Instance Method Details

#updateObject



3
4
5
6
7
8
9
10
# File 'app/controllers/protected/users_controller.rb', line 3

def update
  if current_user.update_without_password(params[:user])
    flash[:success] = "Your changes have been saved."
    redirect_to current_user
  else
    render :action => :edit
  end
end