Change update/save failures to use flash type :error instead of :alert

This commit is contained in:
Nishanth Vijayan 2016-03-16 11:20:56 +05:30
parent 19c54bd935
commit 1c1e56ed46
10 changed files with 13 additions and 13 deletions

View file

@ -90,7 +90,7 @@ module Admin
notice: 'Conference was successfully updated.'
else
redirect_to edit_admin_conference_path(id: short_title),
alert: 'Updating conference failed. ' \
error: 'Updating conference failed. ' \
"#{@conference.errors.full_messages.join('. ')}."
end
end