Refactored profile to resource. Added missing flash notice on successfull updated. Update username via ajax
This commit is contained in:
parent
2be5e6d443
commit
46bf3a0949
14 changed files with 95 additions and 56 deletions
6
app/views/profiles/update_username.js.haml
Normal file
6
app/views/profiles/update_username.js.haml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- if @user.valid?
|
||||
:plain
|
||||
$('.update-username .update-success').show();
|
||||
- else
|
||||
:plain
|
||||
$('.update-username .update-failed').show();
|
Loading…
Add table
Add a link
Reference in a new issue