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

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -