Using flash instead of alerts in the schedule
Using flash instead of alerts in the schedule to notify errors. Also, a message shown when a schedule is successfully created.
This commit is contained in:
parent
81108290e5
commit
5761e0f7a4
7 changed files with 19 additions and 11 deletions
|
|
@ -13,7 +13,8 @@ module Admin
|
|||
|
||||
def create
|
||||
if @schedule.save
|
||||
redirect_to action: 'show', id: @schedule.id
|
||||
redirect_to admin_conference_schedule_path(@conference.short_title, @schedule.id),
|
||||
notice: 'Schedule was successfully created.'
|
||||
else
|
||||
redirect_to admin_conference_schedules_path(conference_id: @conference.short_title),
|
||||
error: 'Could not create schedule'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue