Sha256: dfeaa37a8dea93d690a4724f985f8f245033969bf59dafd304efaf8569321f30

Contents?: true

Size: 794 Bytes

Versions: 4

Compression:

Stored size: 794 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.namespace :admin, :path_prefix => '/admin/event_calendar' do |cal|
    cal.resources :calendars
    cal.resources :icals, :collection => {:refresh_all => :any}, :member => {:refresh => :put}
    cal.resources :events, :member => {:remove => :get}
    cal.resources :event_venues, :member => {:remove => :get}
    cal.calendars_home '/', :controller => 'events', :action => 'index'
  end
  map.calendar "/calendar.:format", :controller => 'events', :action => 'index'
  map.calendar_year "/calendar/:year", :controller => 'events', :action => 'index'
  map.calendar_month "/calendar/:year/:month", :controller => 'events', :action => 'index'
  map.calendar_day "/calendar/:year/:month/:mday", :controller => 'events', :action => 'index'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-event_calendar-extension-1.1.0 config/routes.rb
radiant-event_calendar-extension-1.0.2 config/routes.rb
radiant-event_calendar-extension-1.0.1 config/routes.rb
radiant-event_calendar-extension-1.0.0 config/routes.rb