app/controllers/assignment_controller.rb
# deletes an assignment and re-renders the assignment views
deletes an assignment and re-renders the assignment views
deletes an assignment and re - renders the assignment views
def destroy
		@assignment.destroy
    flash[:notice] = "Your assignment has been deleted."
    redirect_to assignments_path(@contract)
	end
def destroy @assignment . destroy flash [ :notice ] = "Your assignment has been deleted." redirect_to assignments_path ( @contract ) end
deletes an assignment and re-renders the assignment views
deletes an assignment and re - renders the assignment views