survey/config/routes.rb

40 lines
820 B
Ruby
Raw Normal View History

2014-10-06 05:55:25 +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
2017-04-11 06:10:01 +00:00
get "surveys/checkforthread", to: "surveys#checkforthread"
2014-10-06 05:55:25 +00:00
resources :surveys do
collection do
get 'delete'
end
member do
get 'export'
get 'set_answers'
get 'jump'
get 'duplicate_it'
get 'answer_sets'
get 'answer_set'
2014-10-06 05:55:25 +00:00
end
resources :answers, :controller => :surveys_answers do
collection do
get 'delete'
end
end
end
end
resources :surveys do
collection do
get ':slug_title-:uid', to: 'surveys#show'
end
member do
get 'result'
end
end
end
end