CSC/ECE 517 Fall 2014/oss E1502 wwj
E1502: Questionnaire Controller Refactoring
Introduction to Expertiza
Project Description
What it does:
Used on the admin side of Expertiza for creating/ editing questionnaires (rubrics, surveys and quizzes). It helps in add/removing questions, options, etc for a questionnaire.
Other classes involved:
What needs to be done:
What We Have Done
Method Name | Changes Made | Reason For Change |
---|---|---|
Copy | Extract the content of this method as copy_questionnaires method and put it in questionnaire.rb | The content of this method is about operations on the database (coping a questionnaire), it is better to put it in the model. |
edit | Deleted the old edit method | The old edit method was not getting called due to ruby rules |
new_feedback | Deleted the old new_feedback method | The old new_feedback method was not getting called due to ruby rules |
view | Deleted the old view method | The old view method was not getting called due to ruby rules |
redirect_when_disallowed | Moved all of the code from redirect_when_disallowed to action_allowed and changed all of the references | Authorization to perform actions wasn't being performed correctly, it is supposed to be done through action_allowed? |
action_allowed? |