swamp09/sample_app

View on GitHub
app/views/password_resets/edit.html.haml

Summary

Maintainability
Test Coverage
- provide(:title, 'Reset password')
%h1 Reset password
.row
  .col-md-6.col-md-offset-3
    = form_for(@user, url: password_reset_path(params[:id])) do |f|
      = render 'shared/error_messages'
      = hidden_field_tag :email, @user.email
      = f.label :password
      = f.password_field :password, class: 'form-control'
      = f.label :password_confirmation, "Confirmation"
      = f.password_field :password_confirmation, class: 'form-control'
      = f.submit "Update password", class: "btn btn-primary"