Introduce volunteer deletion

This commit is contained in:
Petko Bordjukov 2024-09-08 18:27:47 +03:00
parent 93611a3bd9
commit fc08089796
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@ module Management
@volunteer = current_conference.volunteers.find(params[:id])
end
def destroy
@volunteer = current_conference.volunteers.find(params[:id])
@volunteer.destroy!
redirect_to management_conference_volunteers_path(conference_id: current_conference.id)
end
def update
@volunteer = current_conference.volunteers.find(params[:id])