Created
August 15, 2011 13:34
-
-
Save szimek/1146758 to your computer and use it in GitHub Desktop.
Use different root routes when user is signed in/out (http://collectiveidea.com/blog/archives/2011/05/31/user-centric-routing-in-rails-3/)
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
root :to => "users#dashboard", :constraints => lambda { |r| r.env["warden"].authenticate? } | |
root :to => "home#index" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment