Please enter candidates for <%= @election.name %>.
<% @election.candidates.each do |candidate| %>
<% @candidate = candidate %>
<%= render :partial => 'candidate_line' %>
<% end %>
<%= form_remote_tag(:update => "candidates_list",
:url => { :action => :add_candidate, :id => @election.id },
:position => "top" ) %>
New candidate name:
<%= text_field_tag :newcandidate %>
<%= submit_tag "Add" %>
<%= end_form_tag %>