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
Post a Comment