This commit is contained in:
Stella Rouzi 2015-10-17 16:57:48 +03:00
parent 2e692f7ea5
commit 01086813af
37 changed files with 221 additions and 190 deletions

View file

@ -170,8 +170,8 @@ module Admin
def get_event
@event = @conference.events.find_by_id(params[:id])
if !@event
redirect_to(admin_conference_events_path(conference_id: @conference.short_title),
alert: 'Error! Could not find event!') && return
flash[:error] = 'Error! Could not find event!'
redirect_to admin_conference_events_path(conference_id: @conference.short_title) && return
end
@event
end