Sha256: 272fec896e8358a4d317888476904db9543f87454ffcd2c1a4aa0429d31756c4
Contents?: true
Size: 784 Bytes
Versions: 4
Compression:
Stored size: 784 Bytes
Contents
<h1>Results</h1> <%- @question_group_results.each do |result| %> <div> <h4><%= result.question.question_text %></h4> <p> <%- if result.results.is_a?(Array) %> <ol> <%- result.results.each do |answer| %> <li><%= answer %></li> <% end %> </ol> <% elsif result.results.is_a?(Hash) %> <table> <thead> <tr> <th>Option</th> <th>Count</th> </tr> </thead> <tbody> <%- result.results.each do |option, count| %> <tr> <td><%= option %></td> <td><%= count %></td> </tr> <% end %> </tbody> </table> <% end %> </div> <% end %>
Version data entries
4 entries across 4 versions & 2 rubygems