- if @user.valid?
:plain
new Flash("Username sucessfully changed", "notice")
- else
new Flash("Username change failed - #{@user.errors.full_messages.first}", "alert")