links/config/routes.rb

14 lines
330 B
Ruby
Raw Normal View History

2014-05-05 08:20:37 +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
2014-05-05 11:33:35 +00:00
namespace :admin do
get 'web_resources/index_table' => 'web_resources#index_table'
resources :web_resources
end
2014-05-05 08:20:37 +00:00
end
end