app/controllers/questionnaires_controller.rb
# FIXME: These private methods belong in the Questionnaire model
These private methods belong in the Questionnaire model
These private methods belong in the Questionnaire model
def export
    @questionnaire = Questionnaire.find(params[:id])
    csv_data = QuestionnaireHelper.create_questionnaire_csv @questionnaire, session[:user].name
    send_data csv_data,
              type: 'text/csv; charset=iso-8859-1; header=present',
              disposition: "attachment; filename=questionnaires.csv"
  end
def export @questionnaire = Questionnaire . find ( params [ :id ] ) csv_data = QuestionnaireHelper . create_questionnaire_csv @questionnaire , session [ :user ] . name send_data csv_data , type : 'text/csv; charset=iso-8859-1; header=present' , disposition : "attachment; filename=questionnaires.csv" end
FIXME: These private methods belong in the Questionnaire model
FIXME : These private methods belong in the Questionnaire model