Prepare to use different root route depending on whether or not the user has already logged in.
This commit is contained in:
parent
04f55abef9
commit
dbfce111b8
1 changed files with 5 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue