<%= link_to_remote "Delete",
:complete => "Element.remove('cand#{@current_candidate.id}')",
:url => { :action => :delete_candidate,
- :id => @current_candidate.id } %>
+ :id => @election.id, :candidate => @current_candidate.id } %>
</div>
<div class="clear-div"></div>
<%= render :partial => 'candidate_box_info' %>