<p>Please enter candidates for <strong><%= @election.name %></strong>.</p>
- <ul id="candidates_list">
- <% @election.candidates.each do |candidate| %>
- <% @candidate = candidate %>
- <%= render :partial => 'candidate_line' %>
- <% end %>
- </ul>
-
- <%= form_remote_tag(:update => "candidates_list",
+ <%= form_remote_tag(:update => "candidate_list",
:url => { :action => :add_candidate, :id => @election.id },
:position => "top" ) %>