重置密码 重置密码 manager

<% if @member.errors.any? %>

有<%= @member.errors.count %>个错误:

<% errors = "" %> <% @member.errors.messages.values.each_with_index { |message, index| errors = errors + "#{index+1}.#{message.join(";")}; " } %> <%= errors %>
<% end %>

重置密码

<%= form_for(@member, :html => {:class => "form-horizontal", :id => "obj_form"}) do |f| %>
<%= f.password_field :password, class: "form-control", placeholder: "请输入密码" %>
<%= f.password_field :password2, class: "form-control", placeholder: "重新输入密码" %>
<% end %>
<%= content_for :js_bottom do %> <% end %>