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