3 <% if @election.voters.length == 0 %>
4 <p>There are currently no voters registered for this election.</p>
6 <p>The following voters are currently registered for this election:</p>
9 <% @election.voters.each do |voter| %>
10 <div id="voter<%= voter.id %>">
11 <li><%= voter.email %>
13 <%= link_to_remote "Delete",
14 :complete => "Element.remove('voter#{voter.id}')",
15 :url => { :action => :delete_voter, :id => voter.id } %>