2014-09-02 18:07:02 +05:30
|
|
|
- if @user.valid?
|
|
|
|
:plain
|
2016-09-29 09:46:39 +05:30
|
|
|
new Flash("Username successfully changed", "notice")
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
|
|
|
:plain
|
|
|
|
new Flash("Username change failed - #{@user.errors.full_messages.first}", "alert")
|