Sha256: 1c9b179afad7f43f303800c1994e3057b839872f0f3b1fe163aa56e904297b13

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

ActionController::Routing::Routes.draw do |map|
  # namespace everything to not disturb normal site routes
  map.namespace :eventable do |e|

    e.resources :events do |event|
      # route for editing/removing prices one by one (or ajax-y)
      event.resources :prices

      # the 'prices' resource of an event (the page that
      # adds/edits/removes all prices)
      event.resource :pricelist, :only => [:show, :edit, :update]

      event.resources :opening_periods
      event.resource :opening_periodlist, :only => [:show, :edit, :update]

      event.resource :categorylist, :only => [:show, :edit, :update]
    end

    e.resources :opening_periods do |op|
      op.resources :opening_times
      op.resource :opening_timelist, :only => [:show, :edit, :update]
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dcs-eventable-0.0.8 config/routes.rb