licensed under the AGPL
[selectricity-live] / app / views / election / edit_candidate.rhtml
index 9bc99544b8cb78c022f31773346cbfdac4e56ba3..7e1dd65704cd3ef9b33d7d59dd6be8ae36419587 100644 (file)
@@ -1,9 +1,9 @@
-<h1>Editing <%= @candidate.name %></h1>
+<h1>Editing <%=h @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?