]> projects.mako.cc - selectricity/blobdiff - app/views/election/edit_candidates.rhtml
Remove deprecated start_form_tag and end_form_tags. Now you're supposed to do form_ta...
[selectricity] / app / views / election / edit_candidates.rhtml
old mode 100755 (executable)
new mode 100644 (file)
index cc2c16a..99f2f12
 
 <p>Please enter new candidates below.</p>
 
-<%= form_tag( { :action => :add_candidate, :id => @election.id },
-              :multipart => true ) %>
+<% form_tag( { :action => :add_candidate, :id => @election.id },
+              :multipart => true ) do %>
 <%= render :partial => 'candidate_form' %>
 <%= submit_tag "Add Candidate" %>
-<%= end_form_tag %>
+<% end %>
 
 <%= button_to "Done!", :action => 'show', :id => @election %>

Benjamin Mako Hill || Want to submit a patch?