Think of destroying a session and exit the controller?
if something_is_not_kosher # 1. log this event, 2. send notice redirect_to destroy_user_session_path and return end
Also tried:
if something_is_not_kosher
Error No route matches [GET] "/users/sign_out" , but I explicitly set the :: delete method in Example 2. Maybe the method has a method? current_user.sign_out and tried sign_out (current_user), which also doesn't work? Thanks for the help.
rake routes:
new_user_session GET /users/sign_in(.:format) devise/sessions
fyz source share