Created
March 17, 2009 09:55
-
-
Save jonuts/80436 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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