test/dummy/config/routes.rb in localizable_routes-2.1.0 vs test/dummy/config/routes.rb in localizable_routes-4.0.0.0
- old
+ new
@@ -1,22 +1,22 @@
Rails.application.routes.draw do
concern :routes do
root to: 'pages#index'
+ get 'simple', to: 'pages#simple', as: :simple
+ get 'complex/:p1/:p2', to: 'pages#complex', as: :complex
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
+ resources :nested
end
end
localized strategy: :param, locales: %i(es en) do
scope as: :param do