summaryrefslogtreecommitdiff
path: root/app/views/profiles/update_username.js.haml
blob: de1337a2a24e093ff7a4a26244c0c8d7c28a53f7 (plain)
1
2
3
4
5
6
- if @user.valid?
  :plain
    new Flash("Username successfully changed", "notice")
- else
  :plain
    new Flash("Username change failed - #{@user.errors.full_messages.first}", "alert")