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:
parent
0046409970
commit
30a66c065a
7 changed files with 73 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue