<% if @edit %>
<%= link_to_remote "Delete",
:complete => "Element.remove('voter#{voter.id}')",
- :url => { :action => :delete_voter, :id => voter.id } %>
+ :url => { :action => :delete_voter, :id => @election.id,
+ :voter => voter.id } %>
<% end %>
</li>
</div>