Event schedule controller pluralized

This commit is contained in:
Ana 2016-08-04 12:19:32 +02:00
parent 33e9c86214
commit c469f4f415
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
module Admin
class EventScheduleController < Admin::BaseController
class EventSchedulesController < Admin::BaseController
load_and_authorize_resource :event_schedule
def create

View file

@ -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}");
});

View file

@ -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'