Skip to content

Instantly share code, notes, and snippets.

@gma
Created September 5, 2012 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gma/3634662 to your computer and use it in GitHub Desktop.
Save gma/3634662 to your computer and use it in GitHub Desktop.
def redirect_to_app_when_logged_in
if request.path == '/' && request.referer.blank? && current_user
redirect_to iteration_path('current')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment