config/routes.rb in ecm_courses2-0.2.4 vs config/routes.rb in ecm_courses2-1.0.0

- old
+ new

@@ -1,12 +1,16 @@ Ecm::Courses::Engine.routes.draw do localized do - resources :course_categories, only: [:index, :show] - resources :courses, only: [:show] do - member do - get "calendar", action: :calendar - get "calendar/:year/:month", action: :calendar + scope :ecm_courses do + resources :course_categories, only: [:index, :show] + resources :courses, only: [:show] do + member do + get "calendar", action: :calendar + get "calendar/:year/:month", action: :calendar + end end + resources :course_dates, only: [:show] + + root to: 'course_categories#index' end - resources :course_dates, only: [:show] end end