Improve user feedback on the Profile > Design page

- Header changes immediately without a page reload
- Lets the user know that we actually saved their setting when changed
This commit is contained in:
Robert Speicher 2012-11-21 15:01:40 -05:00
parent 0046409970
commit 30a66c065a
7 changed files with 73 additions and 12 deletions

View file

@ -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