Skip to content

Instantly share code, notes, and snippets.

@RichGuk
Created September 18, 2008 10:19
Show Gist options
  • Save RichGuk/11416 to your computer and use it in GitHub Desktop.
Save RichGuk/11416 to your computer and use it in GitHub Desktop.
def unauthenticated
session[:return_to] = request.uri unless params[:controller] == 'sessions'
if params[:action] == 'openid'
render :template => 'sessions/openid'
else
render :template => 'sessions/new'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment