Sha256: 8fb872f3d0acdfb68f80699360ee090209c9b8e5b35e4e1e62e8e564d11dedf4

Contents?: true

Size: 836 Bytes

Versions: 1

Compression:

Stored size: 836 Bytes

Contents

Ecm::Courses::Engine.routes.draw do
  # options.reverse_merge!(
  #   { 
  #     :course_category_actions => [:index, :show], 
  #     :course_date_actions     => [:index, :show],
  #     :course_actions          => [:calendar, :index, :show] 
  #   }
  # )
  localized do
    resources :course_categories # , :only => options[:course_category_actions], :controller => 'ecm/courses/course_categories'
    resources :courses do # , :only => options[:course_actions], :controller => 'ecm/courses/courses' do
      member do
        # if options[:course_actions].include?(:calendar)
          get "calendar", action: :calendar
          get "calendar/:year/:month", action: :calendar
        # end  
      end
    end

    resources :course_dates # , only: options[:course_date_actions] #, controller: 'ecm/courses/course_dates'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecm_courses2-0.0.1 config/routes.rb