Rails devise delete/cancel user isn't working

Viewed 181

I apologize if asked in twice. as this question has already been asked but not with any kind of help at all :(

So the problem part is when I am implementing the Invitable and after successful implementation everything works flawlessly except destroy_user_registration.

<%= link_to user_registration_path(resource_name), method: :delete do %>
    <span class="text">Delete My Account</span>
<% end %>

and here is routes.rb for User part

devise_for :users, path: '', path_names: {
 sign_in: 'login',
 sign_out: 'logout',
 sign_up: 'register',
 password: 'reset',
 edit: 'account'
}
0 Answers
Related