Streamlined some graphign contorller methods and took out the 'voters_per_day' method...
[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                     :complete => "Field.focus('ajax_newcandidate')") do %>
14 <p>
15   <%= text_field "ajax", "newcandidate", :size => 40 %>
16   <%= submit_tag "Add(+)" %>
17 </p>
18 <% end %>

Benjamin Mako Hill || Want to submit a patch?