root url with alias path

12 views
Skip to first unread message

Leonardo

unread,
Jan 5, 2014, 9:07:57 AM1/5/14
to i18n-r...@googlegroups.com
I cannot figure out why this isn't working. Where am i wrong?

**Routes.rb**
 

     scope "/:country_prefix", :country_prefix => /uk|finland/, defaults: { locale: I18n.default_locale } do
        localized do
            root :to => 'home#index', :as => :home
          end
       end

**en.yml**

    en:
      named_routes_path:
        home_path: this-is-my-homepage

Reply all
Reply to author
Forward
0 new messages