Class: Admin::ProfilesController
Overview
This controller handles updating your own user data.
Instance Method Summary
collapse
Methods included from BlogHelper
#blog_base_url, #this_blog
Instance Method Details
#index ⇒ Object
7
|
# File 'app/controllers/admin/profiles_controller.rb', line 7
def index; end
|
#update ⇒ Object
9
10
11
12
13
14
15
16
17
|
# File 'app/controllers/admin/profiles_controller.rb', line 9
def update
@user.resource = upload_avatar if params[:user][:filename]
if @user.update(update_params)
redirect_to admin_profiles_url, notice: I18n.t("admin.profiles.index.success")
else
render :index
end
end
|