Remove deprecated start_form_tag and end_form_tags. Now you're supposed to do form_ta...
[selectricity-live] / app / views / quickvote / _candidate_list.rhtml
index f4f1c0628c06d91139300d38a0338cbfa3b02611..64aa97926c228cdb0813e0096965d4f005aec67d 100644 (file)
@@ -1,18 +1,18 @@
 <% %>
 <!-- the list of candidates -->
-<% if @flash[:candlist] %>
+<% if flash[:candlist] %>
   <ul>
-  <% for cand in @flash[:candlist] %>
+  <% for cand in flash[:candlist] %>
     <li><%= cand.capitalize %></li>
   <% end %>
   </ul>
 <% end %>
 
-<%= form_remote_tag :update => 'candlist',
+<% form_remote_tag(:update => 'candlist',
                     :url => { :action => 'add_candidate' },
-                   :complete => "Field.focus('ajax_newcandidate')" %>
+                   :complete => "Field.focus('ajax_newcandidate')") do %>
 <p>
   <%= text_field "ajax", "newcandidate", :size => 40 %>
   <%= submit_tag "Add(+)" %>
 </p>
-<%= end_form_tag %>
+<% end %>

Benjamin Mako Hill || Want to submit a patch?