如何使此根路径转到:'/dashboard' 而不仅仅是http://example.com?
root :to => 'dashboard#index', :constraints => lambda{|req| !req.session[:user_id].blank?}
如何使此根路径转到:'/dashboard' 而不仅仅是http://example.com?
root :to => 'dashboard#index', :constraints => lambda{|req| !req.session[:user_id].blank?}