<%= form_tag "/users/remove_association", method: :delete, onsubmit: "return confirm('Are you absolutely sure you want to remove your Twitter account?');" do %>
<%= hidden_field_tag :provider, "twitter" %>
<% end %>
<%= form_tag "/users/remove_association", method: :delete, onsubmit: "return confirm('Are you absolutely sure you want to remove your GitHub account?');" do %>
<%= hidden_field_tag :provider, "github" %>
<% end %>
<% end %>
<% if @user.articles_count.zero? && @user.comments_count.zero? %>
Delete Account
<%= form_tag "/users/destroy", method: :delete, autocomplete: "off" do %>
Deleting your account will:
delete your profile, along with your Twitter and/or GitHub associations.
This does not include app permissions, which you will have to remove yourself on Twitter/GitHub.
<%# TODO: expand the delete messaging later %>
delete any and all content you have, such as your reading list or chat messages.
allow your username to become available to anyone.
To delete your account, type in your username:
For verification, type the words:delete my account