% if flash[:candidate_names] %>
<% for cand in flash[:candidate_names] %>
- <%= white_list(cand.capitalize) %>
<% end %>
<% end %>
<% form_remote_tag(:update => 'candidate_names',
:url => { :action => 'add_candidate' },
:complete => "Field.focus('ajax_newcandidate')") do %>
<%= text_field "ajax", "newcandidate", :size => 40 %>
<%= submit_tag "Add(+)" %>
<% end %>