<link rel"stylesheet" type="text/css" href="application.css">


<link rel"stylesheet" type="text/css" href="application.css">

<h1>Election 2016</h1>
<h3>Hello <%= current_user.first_name%> <%= current_user.last_name %>!</h3>

<ul>
  <li> Email: <%= current_user.email %> </li>
  <li> Birthday: <%= current_user.birthday %> </li>
  <li> Sex: <%= current_user.gender %> </li>
  <li> Password: <%= current_user.password %> </li>
</ul>






<h1>Voting Record of <%= current_user.first_name %> <%= current_user.last_name %> </h1>

<table>
	<thead>
		<th>Voted Candidate</th>
		<th>Position </th>
		<th>Voted On</th>
	</thead>
	<tbody>
		<% @votes.each do |o| %>
			<tr>
				<td><%= o.candidate.first_name %>&nbsp<%= o.candidate.last_name %></td>
				<td><%= o.candidate.position.name %></td>
				<td><%= o.created_at %></td>
			</tr>
		<% end %>
	</tbody>
</table>

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