• <%= @candidate.name %> <% if @edit %> <%= link_to_remote "Delete", :complete => "Element.remove('cand#{@candidate.id}')", :url => { :action => :delete_candidate, :id => @candidate.id } %> <% end %>