Reputation: 15501
I would like to redirect upon user destroy in devise with rails 3.1 How could this be implemented?
Upvotes: 3
Views: 1075
Reputation: 1284
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
Upvotes: 1