The following are valid options or candidates in this election:
<% @election.candidates.each do |candidate| %> <% @current_candidate = candidate %> <%= render :partial => 'candidate_line_edit' %> <% end %> <% else %>There are no candidates registered for this election.
<% end %>Please enter new candidates below.
<% form_tag( { :action => :add_candidate, :id => @election.id }, :multipart => true ) do %> <%= render :partial => 'candidate_form' %> <%= submit_tag "Add Candidate" %> <% end %> <%= button_to "Done!", :action => 'show', :id => @election %>