Sha256: 735343bb111e1da6ff9404632d377782de44abf51efc424616009f2dff68b0c4
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
Rails.application.routes.draw do concern :routes do root to: 'pages#index' namespace :namespace do get 'nested', to: 'pages#nested', as: :nested resources :resources end get 'simple', to: 'pages#simple', as: :simple get 'complex/:p1/:p2', to: 'pages#complex', as: :complex resources :resources do member do get 'member' end collection do get 'collection' end resources :nesteds end end localized strategy: :param, locales: %i(es en) do scope as: :param do concerns :routes end end localized strategy: :subdomain, locales: { 'es' => :es, 'en' => :en } do scope as: :subdomain do concerns :routes end end localized strategy: :domain, locales: { 'test.es' => :es, 'test.en' => :en } do scope as: :domain do concerns :routes end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
localizable_routes-2.1.0 | test/dummy/config/routes.rb |
localizable_routes-2.0.0 | test/dummy/config/routes.rb |