我目前停留在基于区域设置创建到同一资源的不同路径。我目前的结构是http://example.com/fr/和http://example.com/en/
在我的routes.rb中我目前有:
scope "(:locale)", :locale => /en/ do
resources :units
resources :careers, :only => [:index,:create]
end
scope "(:locale)", :locale => /fr/ do
resources :units, :path => :unites
resources :careers, :only => [:index,:create], :path => :demploi
end