anchor.diff:      f = render_to_string "lti/table.html.erb"
       </pre>
   
  -    After that, it fetches the launch parameters from the request and finds the authentication credentials associated with the public consumer key.<br><br>
  +    After that, it fetches the launch parameters from the request and finds the
  +    authentication credentials associated with the public consumer key.<br><br>
       <pre>
         launch_params = request_params['toParams']['launch_params']
         if launch_params
  
positive.code:     end
    </pre>
  
    Once, student finishes an exercise, it sends a request to <strong>assessment</strong> endpoint from JavaScript which sends score back to Tool Consumer if the request was called as an assessment.
    <br><br>
    Initially it checks if the exercise is from a book or a course offering and then it fetches the number of attempts on the exercise and the progress of a student from the book (or course offering) exercise id and user id.<br><br>
    <pre>
  
    def assessment
  
negative.code:       end
  
        # post the given score to the TC
        score = (request_params['toParams']['score'] != '' ?
        request_params['toParams']['score'] : nil)
        #res = @tp.post_replace_result!(score)
        res = @tp.post_extended_replace_result!(score: score, text: f)
      </pre>
  