Style
This commit is contained in:
parent
2e692f7ea5
commit
01086813af
37 changed files with 221 additions and 190 deletions
|
|
@ -25,9 +25,11 @@ module Admin
|
|||
def update
|
||||
if can_manage_volunteers(@conference)
|
||||
if @conference.update_attributes(params[:conference])
|
||||
redirect_to(admin_conference_volunteers_info_path(conference_id: params[:conference_id]), notice: 'Volunteering options were successfully updated.')
|
||||
flash[:notice] = 'Volunteering options were successfully updated.'
|
||||
redirect_to admin_conference_volunteers_info_path(conference_id: params[:conference_id])
|
||||
else
|
||||
redirect_to(admin_conference_volunteers_info_path(conference_id: params[:conference_id]), alert: "Volunteering options update failed: #{@conference.errors.full_messages.join '. '}")
|
||||
flash[:error] = "Volunteering options update failed: #{@conference.errors.full_messages.join '. '}"
|
||||
redirect_to admin_conference_volunteers_info_path(conference_id: params[:conference_id])
|
||||
end
|
||||
else
|
||||
authorize! :index, :volunteer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue