Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Notice about needing to refresh profile.

  • Loading branch information...
commit a687a0fb9887d32492d4f88f2036aba1e3b055e9 1 parent 23fbb10
@seven1m seven1m authored
View
6 app/controllers/profiles_controller.rb
@@ -26,7 +26,11 @@ def edit
def update
if @profile.update_attributes(params[:profile])
- flash[:success] = t('profile.edit_form.save_success')
+ if params[:profile][:theme_attributes]
+ flash[:success] = t('profile.edit_form.save_success_refresh')
+ else
+ flash[:success] = t('profile.edit_form.save_success')
+ end
end
respond_with(@profile)
end
View
1  config/locales/en-US.yml
@@ -143,6 +143,7 @@ en-US:
nil: Unspecified
save: Save
save_success: Your profile has been saved.
+ save_success_refresh: Your profile has been saved. You may need to refresh the page in order to see all your changes.
tabs:
admin: Admin
profile: Profile
Please sign in to comment.
Something went wrong with that request. Please try again.