1 <!-- the list of candidates -->
2 <% if flash[:candidate_names] %>
4 <% for cand in flash[:candidate_names] %>
5 <li><%= white_list(cand.capitalize) %></li>
10 <% form_remote_tag(:update => 'candidate_names',
11 :url => { :action => 'add_candidate' },
12 :complete => "Field.focus('ajax_newcandidate')") do %>
14 <%= text_field "ajax", "newcandidate", :size => 40 %>
15 <%= submit_tag "Add(+)" %>