memberlog/config/routes.rb

20 lines
485 B
Ruby
Raw Normal View History

2017-02-13 17:27:57 +00:00
Rails.application.routes.draw do
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
resources :memberlogs
resources :dayoffs
resources :members do
collection do
scope '(:name-:uid)' do
resources :memberlogs
resources :dayoffs
end
end
end
end
end
end