Reset Password

<%= form_for(@user, url: password_path(@user.reset_password_token), html: { method: :put }, class: "form-horizontal") do |f| %> Enter your new password
<%= f.label :password, "New password" %> <%= f.password_field :password, class: "form-control" %>
<%= f.hidden_field :reset_password_token %> <%= f.submit "Change my password", class: 'btn btn-primary' %> <% end %>