diff options
Diffstat (limited to 'app/controllers/profile_controller.rb')
-rw-r--r-- | app/controllers/profile_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/profile_controller.rb b/app/controllers/profile_controller.rb index 38cfa896b11..5f8b11fdded 100644 --- a/app/controllers/profile_controller.rb +++ b/app/controllers/profile_controller.rb @@ -9,7 +9,11 @@ class ProfileController < ApplicationController def update @user.update_attributes(params[:user]) - redirect_to :back + + respond_to do |format| + format.html { redirect_to :back } + format.js + end end def token |