Improve Error messages

- Improve error messages in event schedules, schedules and program controller.
- Two respond_to blocks in the update method of program controller.
This commit is contained in:
Ana 2016-08-08 18:29:31 +02:00
parent c687c1072e
commit e8261d41bc
4 changed files with 13 additions and 11 deletions

View file

@ -17,7 +17,7 @@ module Admin
notice: 'Schedule was successfully created.'
else
redirect_to admin_conference_schedules_path(conference_id: @conference.short_title),
error: 'Could not create schedule'
error: "Could not create schedule. #{@schedule.errors.full_messages.join('. ')}."
end
end