Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController'
This commit is contained in:
parent
0b6550d060
commit
daf1f805bd
71 changed files with 225 additions and 191 deletions
|
|
@ -25,7 +25,7 @@ Osem::Application.routes.draw do
|
|||
end
|
||||
end
|
||||
resources :comments, only: [:index]
|
||||
resources :conference do
|
||||
resources :conferences do
|
||||
resource :contact, except: [:index, :new, :create, :show, :destroy]
|
||||
resources :schedules, only: [:index, :create, :show, :update, :destroy]
|
||||
resources :event_schedules, only: [:create, :update, :destroy]
|
||||
|
|
@ -102,17 +102,17 @@ Osem::Application.routes.draw do
|
|||
get '/revision_history/:id/revert_attribute' => 'versions#revert_attribute', as: 'revision_history_revert_attribute'
|
||||
end
|
||||
|
||||
resources :conference, only: [:index, :show] do
|
||||
resources :conferences, only: [:index, :show] do
|
||||
resource :program, only: [] do
|
||||
resources :proposal, except: :destroy do
|
||||
resources :proposals, except: :destroy do
|
||||
get 'commercials/render_commercial' => 'commercials#render_commercial'
|
||||
resources :commercials, only: [:create, :update, :destroy]
|
||||
member do
|
||||
get :registrations
|
||||
patch '/withdraw' => 'proposal#withdraw'
|
||||
patch '/withdraw' => 'proposals#withdraw'
|
||||
get :registrations
|
||||
patch '/confirm' => 'proposal#confirm'
|
||||
patch '/restart' => 'proposal#restart'
|
||||
patch '/confirm' => 'proposals#confirm'
|
||||
patch '/restart' => 'proposals#restart'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -145,7 +145,7 @@ Osem::Application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
get '/admin' => redirect('/admin/conference')
|
||||
get '/admin' => redirect('/admin/conferences')
|
||||
|
||||
root to: 'conference#index', via: [:get, :options]
|
||||
root to: 'conferences#index', via: [:get, :options]
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue