Prepare to use different root route depending on whether or not the user has already logged in.

This commit is contained in:
Roland Jesse 2012-04-28 00:11:46 +02:00
parent 04f55abef9
commit dbfce111b8

View file

@ -63,8 +63,11 @@ ContactORama::Application.routes.draw do
# resources :products
# end
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
# Use CanCan to (optionally) lead logged in users to someplace special.
# http://railsapps.github.com/tutorial-rails-bootstrap-devise-cancan.html
authenticated :user do
root :to => 'welcome#index'
end
root :to => "welcome#index"
# See how all your routes lay out with "rake routes"