Sha256: e9ac0711d9dafc5b29bda6cc46af610f805fc87c3f83b18f4cd4dbd678e402d1
Contents?: true
Size: 763 Bytes
Versions: 2
Compression:
Stored size: 763 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 %></h3> <p><%= section.instructions %></p> <% end %> <dl> <% questions.each do |question| %> <dt><%= question.name %></dt> <% answerer.answers_to(question).each do |answer| %> <dd> <% if answer.is_a?(Answer) && answer.question.supports_uploads? && !answer.uploaded_file.blank? %> <%= link_to answer.to_s, answer.uploaded_file.url, target: "_blank" %> <% else %> <%= simple_format(answer.to_s) %> <% end %> </dd> <% end %> <% end %> </dl> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ask-0.5.1 | app/views/answerer/_answers.html.erb |
ask-0.5.0 | app/views/answerer/_answers.html.erb |