<h1 style="text-align:center"> Here are the Candidates </h1>

<%= link_to "See Total Vote Count", votes_path %>

<table width="70%", align="center">
  <tr>
    <th>Position</th>
    <th>First Name</th>
    <th>Last Name</th>
    <th> Nickname</th>
    <th>Slogan</th>
  </tr>
  <% @candidates.each do |a| %>
    <tr>
      <td><%= a.position.name %></td>
      <td><%= a.first_name %></td>
      <td><%= a.last_name %></td>
      <td><%= a.nickname %></td>
      <td><%= a.slogan %></td>
      <td>
        <%= link_to "Show", candidate_path(a.id) %>
      </td>
    </tr>
  <% end %>
</table>


<%= link_to("Back to Home", root_path) %>


