ruby on rails - making two routes on page -


i working on web app. have 2 languages on it.

i have default root page, root :to => "home#index" on english (e.g www.test.com/en/home). now, after clicking on other language on page, example russian, switch page www.test.com/en/home www.test.com/ru/home load different page on language selected , automatically become home page.

first idea create controller this, since rails knowlege on lower level, assume thats not do.

any suggestions?

-michael

i excepted want multi language app, routes.rb may bellow:

# config/routes.rb scope ':locale'     root :to => "home#index" end 

better informations can find on 2.5 setting locale url


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -