Added the ability to do ajax adding of candidates so there is no longer
[selectricity] / app / views / quickvote / _candidate_list.rhtml
1 <% %>
2 <!-- the list of candidates -->
3 <% if @flash[:candlist] %>
4   <ul>
5   <% for cand in @flash[:candlist] %>
6     <li><%= cand.capitalize %></li>
7   <% end %>
8   </ul>
9 <% end %>
10
11 <%= form_remote_tag :update => 'candlist',
12                     :url => { :action => 'add_candidate' } %>
13 <p>
14   <%= text_field "ajax", "newcandidate", :size => 40 %>
15   <%= submit_tag "Add" %>
16 </p>
17 <%= end_form_tag %>

Benjamin Mako Hill || Want to submit a patch?