I’m using this line after authenticating with Omniauth:
sign_in_and_redirect @user, :event => :authentication
But in that particular case, I want to change the redirect location, regardless of any stored location.
Something like:
sign_in_and_redirect(@user, :event => :authentication, :redirect_to => '/settings')
Well, you could over ride your after_sign_in_path in that controller as follows: