5

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'
}
Ali Ammaar
  • 103
  • 1
  • 1
  • 11
  • "isn't working" isn't very helpful. What happened and what you expected? – Lenin Raj Rajasekaran Dec 17 '18 at 03:26
  • 1
    @LeninRajRajasekaran same problem as this `https://stackoverflow.com/questions/53788974/devise-sign-out-not-working-after-implementation-of-devise-invitable` question but I also facing this issue on Users::RegistrationController destroy function. – Ali Ammaar Dec 17 '18 at 03:36
  • @RanaAlie `rake routes | grep user` run this on project directory at console, what output it returns? – Aman Dec 17 '18 at 05:02
  • @Gabbar please have a look https://imgur.com/a/ydEU7Uj – Ali Ammaar Dec 17 '18 at 06:17

0 Answers0