<% @user.elections.select {|e| e.instance_of?(Election)}.each do |election| %>
<tr>
<td style="text-align: left;">
- <% if election.active == 1 -%>
<%= link_to "#{election.name}", :controller => 'election',
:action => 'show', :id => election %>
- <% else -%>
- <%=h election.name %>
- <% end -%>
</td>
<td style="text-align: left;"><%=h election.description %></td>
<td style="text-align: left;">