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

Benjamin Mako Hill || Want to submit a patch?