Class: User::ProfilesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/user/profiles_controller.rb

Instance Method Summary collapse

Methods included from ApplicationSignInCallbacksConcern

#sign_in

Methods included from ApplicationPaginationConcern

#page_param

Methods included from ApplicationAnnouncementsConcern

#global_announcements, #unread_global_announcements

Methods included from ApplicationInstanceUserConcern

#current_instance_user

Methods included from ApplicationUserTimeZoneConcern

#set_time_zone

Methods included from ApplicationUserConcern

#handle_access_denied, #publicly_accessible?

Methods included from ApplicationComponentsConcern

#handle_component_not_found

Instance Method Details

#editObject


5
6
# File 'app/controllers/user/profiles_controller.rb', line 5

def edit
end

#updateObject


8
9
10
11
12
13
14
# File 'app/controllers/user/profiles_controller.rb', line 8

def update
  if current_user.update_attributes(profile_params)
    redirect_to , success: t('.success')
  else
    render 'edit'
  end
end