Sha256: 299e35ec37ab17b7e883beb9e1d02990e4831c8ac858a03d04f74f17b28fe857

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

-raise 'You must pass in an "answerer" to use this partial' unless defined? answerer

-answerer.questions_by_section.each do |section, questions|
  -unless section.nil?
    %h3= section.name
    %p= section.instructions
  %dl
    -questions.each do |question|
      %dt= question.name
      -answerer.answers_to(question).each do |answer|
        %dd= answer.answer

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ask-0.4.1 app/views/answerer/_answers.html.haml
ask-0.4.0 app/views/answerer/_answers.html.haml
ask-0.3.1 app/views/answerer/_answers.html.haml
ask-0.3.0 app/views/answerer/_answers.html.haml