Like once I'm ON sign_in page - I just want to sign in. But if it fails - I wanna get to the root path.
Right now my monkey patch is:
class Candidate::SessionsController < Devise::SessionsController
def new
if flash[:alert].present?
redirect_to root_path, alert: flash[:alert]
else
render 'new', layout: false
end
end
end
But I want do it the right way; this is ugly.