Change update/save failures to use flash type :error instead of :alert
This commit is contained in:
parent
19c54bd935
commit
1c1e56ed46
10 changed files with 13 additions and 13 deletions
|
|
@ -36,7 +36,7 @@ module Admin
|
|||
if @venue.destroy
|
||||
redirect_to admin_conference_venue_path, notice: 'Venue was successfully deleted.'
|
||||
else
|
||||
redirect_to admin_conference_venue_path, alert: 'An error prohibited this Venue from being destroyed: '\
|
||||
redirect_to admin_conference_venue_path, error: 'An error prohibited this Venue from being destroyed: '\
|
||||
"#{@venue.errors.full_messages.join('. ')}."
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue