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
|
|
@ -21,7 +21,7 @@ class ConferenceRegistrationsController < ApplicationController
|
|||
end
|
||||
|
||||
if @conference.registration_limit_exceeded?
|
||||
redirect_to root_path, alert: "Sorry, registration limit exceeded for #{@conference.title}"
|
||||
redirect_to root_path, error: "Sorry, registration limit exceeded for #{@conference.title}"
|
||||
return
|
||||
end
|
||||
|
||||
|
|
@ -102,7 +102,7 @@ class ConferenceRegistrationsController < ApplicationController
|
|||
@registration = Registration.find_by(conference: @conference, user: current_user)
|
||||
if !@registration
|
||||
redirect_to new_conference_conference_registrations_path(@conference.short_title),
|
||||
alert: "Can't find a registration for #{@conference.title} for you. Please register."
|
||||
error: "Can't find a registration for #{@conference.title} for you. Please register."
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue