diff --git a/app/controllers/admin/event_schedule_controller.rb b/app/controllers/admin/event_schedules_controller.rb similarity index 91% rename from app/controllers/admin/event_schedule_controller.rb rename to app/controllers/admin/event_schedules_controller.rb index c8e6cae1..402f64b0 100644 --- a/app/controllers/admin/event_schedule_controller.rb +++ b/app/controllers/admin/event_schedules_controller.rb @@ -1,5 +1,5 @@ module Admin - class EventScheduleController < Admin::BaseController + class EventSchedulesController < Admin::BaseController load_and_authorize_resource :event_schedule def create diff --git a/app/views/admin/schedules/show.html.haml b/app/views/admin/schedules/show.html.haml index 05986561..a920ecef 100644 --- a/app/views/admin/schedules/show.html.haml +++ b/app/views/admin/schedules/show.html.haml @@ -32,5 +32,5 @@ :javascript $(document).ready( function() { - Schedule.initialize("#{admin_conference_event_schedule_index_path(@conference)}", "#{@schedule.id}"); + Schedule.initialize("#{admin_conference_event_schedules_path(@conference)}", "#{@schedule.id}"); }); diff --git a/config/routes.rb b/config/routes.rb index 552b8307..25c253e5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -23,7 +23,7 @@ Osem::Application.routes.draw do resources :conference do resource :contact, except: [:index, :new, :create, :show, :destroy] resources :schedules, only: [:index, :create, :show, :update, :destroy] - resources :event_schedule, only: [:create, :update, :destroy] + resources :event_schedules, only: [:create, :update, :destroy] get 'commercials/render_commercial' => 'commercials#render_commercial' resources :commercials, only: [:index, :create, :update, :destroy] get '/volunteers_list' => 'volunteers#show'