app/controllers/questionnaires_controller.rb
#=========================================================================================================
# Separate methods for quiz questionnaire
#=========================================================================================================
# View a quiz questionnaire
Separate methods for quiz questionnaire
View a quiz questionnaire
Separate methods for quiz questionnaire View a quiz questionnaire
def view_quiz
    @questionnaire = Questionnaire.find(params[:id])
    @participant = Participant.find(params[:pid]) 
    render :view
  end
def view_quiz @questionnaire = Questionnaire . find ( params [ :id ] ) @participant = Participant . find ( params [ :pid ] ) render :view end
Separate methods for quiz questionnaire
View a quiz questionnaire
Separate methods for quiz questionnaire View a quiz questionnaire
# creating an instance variable since it needs to be sent to submitted_content/edit