web/mooctracker_rails/app/controllers/courses_controller.rb
#Send a DELETE request on /courses/id to destroy the course object
Send a DELETE request on /courses/id to destroy the course object
Send a DELETE request on / courses / id to destroy the course object
def destroy
    @course = Course.find(params[:id])
    @course.destroy
    render json: {success: "ok"}
  end
def destroy @course = Course . find ( params [ :id ] ) @course . destroy render json : { success : "ok" } end
Send a DELETE request on /courses/id to destroy the course object
Send a DELETE request on / courses / id to destroy the course object