User:Mwgabriel/Playground

response.rb
response.rb is the class that manages the response to all rubrics in Expertiza. if someone fills out a review form, the instance of the review form is a Response. If someone gives feedback (a “rejoinder”) to an author, that is a Response too. Or if someone evaluates a teammate contribution, fills out a survey, or takes a quiz, they are creating a Response.

Note: Method display_as_html writes the HTML for displaying a rubric. This would ordinarily be view code, but it is used by so many different views that it is done here. Questions are written out in the order of their sequence number (anyone who creates a rubric can specify sequence numbers for questions). After all questions are displayed, there is a blank for an additional comment.

Ensure score calculations utilize the weight of questions
Question weights are taken into account when score is calculated.

Remove comments in lines 25-27
Comments have been removed.

response_helper.rb
response_helper.rb contains helper methods that display the questionnaires and rearrange questions so that the most frequently answered questions are at the bottom while the less frequently answered questions are at the top.

Refactor construct_table method
Method is no longer being used in Expertiza and has been removed.

Refactor rearrange_questions method
Method is no longer being used in Expertiza and has been removed.