web/mooctracker_rails/app/controllers/studentcourses_controller.rb
def update
    @studentcourse = Studentcourse.find(params[:id])
    if @studentcourse.update_attributes(studentcourse_params)
      render json: @studentcourse
    else
      render 'edit'
    end
  end
#Send a PUT/PATCH request on /studentcourses/id , to edit a particular studentcourse
Send a PUT/PATCH request on /studentcourses/id , to edit a particular studentcourse
Send a PUT / PATCH request on / studentcourses / id to edit a particular studentcourse
def update
    @studentcourse = Studentcourse.find(params[:id])
    if @studentcourse.update_attributes(studentcourse_params)
      render json: @studentcourse
    else
      render 'edit'
    end
  end
def update @studentcourse = Studentcourse . find ( params [ :id ] ) if @studentcourse . update_attributes ( studentcourse_params ) render json : @studentcourse else render 'edit' end end
Send a PUT/PATCH request on /studentcourses/id , to edit a particular studentcourse
Send a PUT / PATCH request on / studentcourses / id to edit a particular studentcourse