Rubytastic
Rubytastic

Reputation: 15501

Devise redirect on user destroy?

I would like to redirect upon user destroy in devise with rails 3.1 How could this be implemented?

Upvotes: 3

Views: 1075

Answers (1)

jamiescript
jamiescript

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

Related Questions