web/mooctracker_rails/app/controllers/courses_controller.rb
#Send a PUT/PATCH request on /courses/id , to edit a particular course
Send a PUT/PATCH request on /courses/id , to edit a particular course
Send a PUT / PATCH request on / courses / id to edit a particular course
def update
    @course = Course.find(params[:id])
    if @course.update_attributes(course_params)
      redirect_to @course
    else
      render 'edit'
    end
  end
def update @course = Course . find ( params [ :id ] ) if @course . update_attributes ( course_params ) redirect_to @course else render 'edit' end end
Send a PUT/PATCH request on /courses/id , to edit a particular course
Send a PUT / PATCH request on / courses / id to edit a particular course