Class: UsersController

Inherits:
Spree::BaseController show all
Defined in:
app/controllers/users_controller.rb

Instance Method Summary collapse

Methods inherited from Spree::BaseController

#access_forbidden, #default_title, #find_order, #initialize_extension_partials, #set_title, #title

Methods inherited from ApplicationController

#admin_created?

Methods included from EasyRoleRequirementSystem

included

Methods included from EasyRoleRequirementSystem::InstanceMethods

#included

Methods included from RoleRequirementSystem

included

Instance Method Details

#updateObject



30
31
32
33
34
35
36
37
38
# File 'app/controllers/users_controller.rb', line 30

def update
  @user = @current_user
  if @user.update_attributes(params[:user])
    flash[:notice] = t("account_updated")
    redirect_to 
  else
    render :action => :edit
  end
end