use flash.now instead of flash where page is rendered in the same controller methods

This commit is contained in:
Eugene Dubinin 2017-04-03 18:34:37 +03:00
parent d90d2344d6
commit b7bdb29cbe
23 changed files with 39 additions and 39 deletions

View file

@ -89,7 +89,7 @@ module Admin
end
else
@url = admin_conference_program_event_path(@conference.short_title, @event)
flash[:error] = 'Update not successful. ' + @event.errors.full_messages.to_sentence
flash.now[:error] = 'Update not successful. ' + @event.errors.full_messages.to_sentence
render :edit
end
end