有<%= @member.errors.count %>个错误:
<% errors = "" %> <% @member.errors.messages.values.each_with_index { |message, index| errors = errors + "#{index+1}.#{message.join(";")}; " } %> <%= errors %>重置密码
<%= f.password_field :password, class: "form-control", placeholder: "请输入密码" %>
<%= f.password_field :password2, class: "form-control", placeholder: "重新输入密码" %>