diff --git a/app/views/polls/results.html.erb b/app/views/polls/results.html.erb new file mode 100644 index 000000000..353f92fa1 --- /dev/null +++ b/app/views/polls/results.html.erb @@ -0,0 +1,36 @@ +
+ + +
+ <%- @poll.questions.each do |question| %> + +

<%= question.title %>

+ + + <%- question.question_answers.each do |answer| %> + + <% end %> + + + + + <%- question.question_answers.each do |answer| %> + + <% end %> + + +
><%= answer.title %>
> + <%= answer.total_votes %> + (<%= answer.total_votes_percentage %>%) +
+ <% end %> + +
+