<%= @vote.description %>
Hello, <%= current_user.email %>.
| Participant | <% @vote.candidates.each do |candidate| %><%= candidate.name %> | <% end %>
|---|---|
| <%= user.email %> | <% @vote.candidates.each do |candidate| %> <% if rating = @vote.ratings.find { |rating| rating.user == user and rating.candidate == candidate } %><%= rating.value %> | <% end %> <% end %>