active/config/routes.rb

26 lines
496 B
Ruby
Raw Normal View History

2014-11-10 02:24:07 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
resources :actives do
member do
get 'export'
get 'act_signup'
end
end
resources :active_agreements
resources :active_signups
end
resources :actives do
collection do
get ':slug_title-:uid', to: 'actives#show'
end
end
end
end