Sha256: d31d7b5c82ebbe091fc9a5dca79a075090dcc61471807ad3123795dd460b1cfc
Contents?: true
Size: 748 Bytes
Versions: 30
Compression:
Stored size: 748 Bytes
Contents
#surveyor - @survey.sections.each do |section| - div_for section do .title= section.title .questions - @section.questions.each_with_index do |question, index| - if question.part_of_group? - 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}) - else = render(:partial => "/partials/question", :locals => {:question => question, :response_set => @response_set})
Version data entries
30 entries across 30 versions & 3 rubygems