Sha256: 121fdd74ffffae1853987630b0b3d557b1e1c32b933a366025e420cc3d94a066
Contents?: true
Size: 894 Bytes
Versions: 23
Compression:
Stored size: 894 Bytes
Contents
#surveyor - @survey.sections.each do |section| - div_for section do .title= section.title .questions - group_questions ||= [] - section.questions.each_with_index do |question, index| - if question.part_of_group? - group_questions << question - if (index + 1 >= section.questions.size) or (question.question_group_id != section.questions[index + 1].question_group_id) - # skip to the last question of the section, or the last question of the group = render(:partial => "/partials/question_group", :locals => {:question_group => question.question_group, :response_set => @response_set, :group_questions => group_questions}) - group_questions = [] - else = render(:partial => "/partials/question", :locals => {:question => question, :response_set => @response_set})
Version data entries
23 entries across 23 versions & 1 rubygems