Skip to content

Instantly share code, notes, and snippets.

@murdoch
Created October 28, 2013 20:23
Show Gist options
  • Save murdoch/7203932 to your computer and use it in GitHub Desktop.
Save murdoch/7203932 to your computer and use it in GitHub Desktop.
Change signin path depending on url options
protected
def stored_location_for(resource)
nil
end
def after_sign_in_path_for(resource)
if condition_foo
redirect_to foo_url
elsif condition bar
redirect_to bar_url
else
redirect_to dashboard_url
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment