Introduce volunteer deletion
This commit is contained in:
parent
93611a3bd9
commit
fc08089796
|
@ -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])
|
||||
|
||||
|
|
Loading…
Reference in New Issue