1 2 3 4 5 6
- if @user.valid? :plain new Flash("账号已成功修改", "notice") - else :plain new Flash("账号修改失败 - #{@user.errors.full_messages.first}", "alert")