A few major changes:
[selectricity] / app / views / election / _voter_list.rhtml
1 <% %>
2
3 <% if @election.voters.length == 0 %>
4 <p>There are currently no voters registered for this election.</p>
5 <% else %>
6 <p>The following voters are currently registered for this election:</p>
7
8 <ul>
9   <% @election.voters.each do |voter| %>
10   <div id="voter<%= voter.id %>">
11     <li><%= voter.email %>
12         <% if @edit %>
13         <%= link_to_remote "Delete",
14                     :complete => "Element.remove('voter#{voter.id}')",
15                     :url => { :action => :delete_voter, :id => voter.id } %>
16         <% end %>
17     </li>
18   </div>  
19   <% end %>
20 </ul>
21 <% end %>

Benjamin Mako Hill || Want to submit a patch?