Skip to content

Instantly share code, notes, and snippets.

@jonuts
Created March 17, 2009 09:55
Show Gist options
  • Save jonuts/80436 to your computer and use it in GitHub Desktop.
Save jonuts/80436 to your computer and use it in GitHub Desktop.
match('/').defer_to do |request, params|
if request.session.user
params.merge :controller => 'accounts', :action => 'index'
else
params.merge :controller => 'welcome', :action => 'index'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment