I would like to redirect upon user destroy in devise with rails 3.1 How could this be implemented?
Try this in your ApplicationController (replacing new_user_session_path with the path of your choice
private
def after_sign_out_path_for(resource_or_scope)
new_user_session_path
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With