I am using Devise for a large app with multiple engines and am looking for an alternative solution to the three options given below to destroy an user's session path:
- require jquery-ujs
- change config.sign_out_via = :delete to config.sign_out_via = :get
- use button_to instead of link_to
I'm currently require jquery-ujs and am able to successfully log out, but would prefer not to have to use this dependency for my solution.
= link_to 'Log Out', destroy_user_session_path, method: :delete
I will settle for require jquery-ujs if necessary, but am hoping someone out there knows another solution. Thanks!