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