update_username.js.haml 186 Bytes EditWeb IDE 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")