Commit 4a1ee050

mo kareem <email@mokhan.ca>
2011-04-17 07:45:16
default route to sign in page otherwise dashboard if already signed in.
1 parent a0cebe9
Changed files (1)
config/routes.rb
@@ -52,7 +52,11 @@ Cake::Application.routes.draw do
 
   # You can have the root of your site routed with "root"
   # just remember to delete public/index.html.
+  #root :to => "home#index"
+  authenticate :user do
   root :to => "home#index"
+  end
+  root :to => "devise:sessions#new"
 
   # See how all your routes lay out with "rake routes"