Sha256: 19adf0f94f79f3c59ecc46313ce83a76bcad9579b483d659918bfbbed57a1cca
Contents?: true
Size: 765 Bytes
Versions: 3
Compression:
Stored size: 765 Bytes
Contents
# frozen_string_literal: true Rails.application.routes.draw do mount EffectiveEvents::Engine => '/', as: 'effective_events' end EffectiveEvents::Engine.routes.draw do # Public routes scope module: 'effective' do resources :events, only: [:index, :show] do resources :event_registrations, only: [:new, :show, :destroy] do resources :build, controller: :event_registrations, only: [:show, :update] end end end namespace :admin do resources :events, except: [:show] resources :event_tickets, except: [:show] resources :event_products, except: [:show] resources :event_registrants, except: [:show] resources :event_addons, except: [:show] resources :event_registrations, only: [:index, :show] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
effective_events-0.1.10 | config/routes.rb |
effective_events-0.1.9 | config/routes.rb |
effective_events-0.1.8 | config/routes.rb |