<% question.options.each do |option| %> <% percentage = ( 100 / question.votes.count ) * option.votes.count %> <% end %>
<%= option.text %> <% question.answers.by(current_user).each do |answer| %> <% answer.votes.each do |vote| %> <%= '*' if vote.option == option %> <% end %> <% end %> <%= percentage %>% (<%= option.votes.count %>) <% if option.correct? %> ✔ <% end %>