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