I have a design problem. When the user has already logged in and then clicks on the login link, nothing happens, but it is displayed in my terminal:
Filter chain halted as :require_no_authentication rendered or redirected
This happens when I'm going to Processing by SessionsController#new as HTML
Is there any way I can say what come up with to go to after_sign_in_path if there is a registered user?
here is my after_sign_in_path
def after_sign_in_path_for(resource) if session[:user_return_to] return_to = session[:user_return_to] session[:user_return_to] = nil return_to else redirect_path(resource) end end
source share