<%= form_for @user, url: {action: "changepasswd"} do |f| %> <%= render 'shared/error_messages', object: f.object %>
<%= f.email_field :email, class: 'form-control', placeholder: "请输入邮箱" %>
<%= f.password_field :password, class: 'form-control', placeholder: "请输入密码" %>
<%= f.password_field :password_confirmation, class: 'form-control', placeholder: "请再次输入密码" %>
<%= f.submit "重置密码", class: "btn btn-primary btn-block" %> <% end %>