Skip to content

Instantly share code, notes, and snippets.

@yoon
Created July 1, 2013 15:32
Show Gist options
  • Save yoon/5901884 to your computer and use it in GitHub Desktop.
Save yoon/5901884 to your computer and use it in GitHub Desktop.
surveyor export view
Questions may have many answers, e.g. "Fun, Kind, Cool". Export one column per answer, or collapse to one column per question.
%h4 Columns - one per:
= radio_button_tag :column, :answer, true
= label_tag :column_answer, "answer"
= radio_button_tag :column, :question
= label_tag :column_question, "question"
An answer has various identifiers set in the form definition. Response count is the number of times an answer is selected.
%h4 Cells - data:
= radio_button_tag :data, :answer_text, true
= label_tag :data_answer_text, "answer text"
= radio_button_tag :data, :answer_reference_identifier
= label_tag :data_answer_reference_identifier, "answer reference identifier"
= radio_button_tag :data, :answer_data_export_identifier
= label_tag :data_answer_data_export_identifier, "answer data export identifier"
= radio_button_tag :data, :answer_weight
= label_tag :data_answer_weight, "answer weight"
= radio_button_tag :data, :response_count
= label_tag :data_response_count, "response count"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment