ruby on rails - How do you get to have multiple root? -
so making application in rails, , require more 1 roots seen below
root "post#index" root "gaming#index"
but allows me have 1 root. have solution?
if understand correctly want have different #root different cases, in case use constraints
, or namespace #root
try out, can useful in case. http://guides.rubyonrails.org/routing.html#advanced-constraints
Comments
Post a Comment