CSC/ECE 517 Spring 2019/E1933 Allow reviewer to say review can be shown to class as an example

From Expertiza_Wiki
Jump to navigation Jump to search

Reviews in Expertiza

What is this project adding to the reviews?

What needs to be done?

1) Creating a checkbox
2) Allow instructors to select(remove) from public(selected) reviews to show to (hide from) the class.
3) Allow students to see good reviews
4) Allow current participants of the course to be shown good reviews of the earlier course sessions as well.
5) Allow students to make a review private.

Files that will change

  • create migration for the responses model called status which can take on the values 'selected', 'public' and 'private'.
  • create a status field in responses model: schema.rb.
    add a column "status" in responses model.
  • create a checkbox in a view: views/response/response.html.erb:333.
  • add code to check the status field from response.html.erb and update the db, in controller: app/controllers/response_controller.rb(in method "create").