Sha256: 036e3b1bbe9b46c411bf12d0b637a2d785d02518b9b5885d8be3c7daffb2a67f

Contents?: true

Size: 1003 Bytes

Versions: 4

Compression:

Stored size: 1003 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  map.namespace :admin, :path_prefix => '/admin/event_calendar' do |cal|
    cal.resources :calendars, :member => {:remove => :get}
    cal.resources :icals, :collection => {:refresh_all => :any}, :member => {:refresh => :put}
    cal.resources :events, :member => {:remove => :get}
    cal.resources :event_venues, :member => {:remove => :get}, :has_many => :events
    cal.calendars_home '/', :controller => 'events', :action => 'index'
  end
  
  prefix = Radiant.config['event_calendar.path'] || "/calendar"
  map.calendar "#{prefix}/events/:id.:format", :controller => 'events', :action => 'show'
  map.calendar "#{prefix}.:format", :controller => 'events', :action => 'index'
  map.calendar_year "#{prefix}/:year", :controller => 'events', :action => 'index'
  map.calendar_month "#{prefix}/:year/:month", :controller => 'events', :action => 'index'
  map.calendar_day "#{prefix}/: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.4.14 config/routes.rb
radiant-event_calendar-extension-1.4.12 config/routes.rb
radiant-event_calendar-extension-1.4.10 config/routes.rb
radiant-event_calendar-extension-1.4.9 config/routes.rb