For my application, I have user accounts that people can sign up. I use the devise gem for the setup.
devise
I also have a users page that lists out all the u
According to devise 4.1 rake routes and views, using the following will help you delete the account once logged in as a user.
<%= link_to "Cancel my account", registration_path(current_user), data: { confirm: "Are you sure?" }, method: :delete %>