diff --git a/config/routes.rb b/config/routes.rb index 74cf8d5..905dbf0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -42,7 +42,7 @@ #post 'contact_form' => 'contacts', as: 'localized_contact_creation' #get 'contact_form' => 'contacts#new', as: 'localized_contact_form' - resources :organisations, :path => 'org/admin' do + resources :organisations, :path => 'org/admin', only: [] do member do get 'children' get 'templates' @@ -52,7 +52,7 @@ end end - resources :guidances, :path => 'org/admin/guidance' do + resources :guidances, :path => 'org/admin/guidance', only: [] do member do get 'admin_show' get 'admin_index' @@ -62,14 +62,14 @@ post 'admin_create' put 'admin_update' - get 'update_phases', :as => 'update_phases' - get 'update_versions', :as => 'update_versions' - get 'update_sections', :as => 'update_sections' - get 'update_questions', :as => 'update_questions' + get 'update_phases' + get 'update_versions' + get 'update_sections' + get 'update_questions' end end - resources :guidance_groups, :path => 'org/admin/guidancegroup' do + resources :guidance_groups, :path => 'org/admin/guidancegroup', only: [] do member do get 'admin_show' get 'admin_new' @@ -80,11 +80,7 @@ end end - #resource :organisation - - #resources :splash_logs - - resources :dmptemplates, :path => 'org/admin/templates' do + resources :dmptemplates, :path => 'org/admin/templates', only: [] do member do get 'admin_index' get 'admin_template' @@ -113,18 +109,9 @@ end end - resources :phases - resources :versions - resources :sections - resources :questions - resources :question_themes + resources :answers, only: :create - - resources :themes - - resources :answers - resources :plan_sections - resources :comments do + resources :comments, only: [:edit, :create, :update] do member do put 'archive' end