mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
flash alert to flash error
This commit is contained in:
parent
65c0cd7a73
commit
d44e1f7c24
9 changed files with 23 additions and 23 deletions
|
|
@ -19,7 +19,7 @@ module Admin
|
|||
redirect_to admin_conference_registrations_path(@conference.short_title),
|
||||
notice: 'Successfully updated registration!'
|
||||
else
|
||||
flash[:alert] = "An error prohibited the Registration for #{@conference.title}: "\
|
||||
flash[:error] = "An error prohibited the Registration for #{@conference.title}: "\
|
||||
"#{@registration.errors.full_messages.join('. ')}."
|
||||
render :edit
|
||||
end
|
||||
|
|
@ -32,7 +32,7 @@ module Admin
|
|||
notice: "Deleted registration for #{@user.name}!"
|
||||
else
|
||||
redirect_to(admin_conference_registrations_path(@conference.short_title),
|
||||
alert: 'You must be an admin to delete a registration.')
|
||||
error: 'You must be an admin to delete a registration.')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue