- title "Change password" %h2 Change your password = devise_error_messages! #principal = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| = f.hidden_field :reset_password_token .field = f.label :password, "New password" - if @minimum_password_length %em= "(#{@minimum_password_length} characters minimum)" = f.password_field :password, autofocus: true, autocomplete: "off" .field = f.label :password_confirmation, "Confirm new password" = f.password_field :password_confirmation, autocomplete: "off" .submit-field = f.submit "Change my password" .navigation= link_to "← Back to thoughts", root_url