app/controllers/questionnaires_controller.rb
# seperate method for creating a quiz questionnaire because of differences in permission
seperate method for creating a quiz questionnaire because of differences in permission
seperate method for creating a quiz questionnaire because of differences in permission
def create_quiz_questionnaire
    valid = valid_quiz
    if valid.eql?("valid")
      create_questionnaire
    else
      flash[:error] = valid.to_s
      redirect_to :back
    end
  end
def create_quiz_questionnaire valid = valid_quiz if valid . eql? ( "valid" ) create_questionnaire else flash [ :error ] = valid . to_s redirect_to :back end end
seperate method for creating a quiz questionnaire because of differences in permission
seperate method for creating a quiz questionnaire because of differences in permission