Remove deprecated start_form_tag and end_form_tags. Now you're supposed to do form_ta...
[selectricity] / app / views / election / edit_candidate.rhtml
index e465ae961714ff6e227fdd8ad707ad967394ff1a..fe56aa08c37f3d20d8c33f03da7c2cef4442f181 100644 (file)
@@ -1,9 +1,9 @@
 <h1>Editing <%= @candidate.name %></h1>
 
 <%= error_messages_for :candidate %>
-<%= form_tag( { :action => :update_candidate, :id => @candidate.id },
-              :multipart => true ) %>
+<% form_tag( { :action => :update_candidate, :id => @candidate.id },
+              :multipart => true ) do %>
 <%= render :partial => 'candidate_form' %>
 <%= submit_tag "Save" %>
-<%= end_form_tag %>
+<% end %>
 

Benjamin Mako Hill || Want to submit a patch?