]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/confirm.html.erb
Use form_tag instead of building forms by hand
[rails.git] / app / views / user / confirm.html.erb
index 408ba771fc510e7244276709a9f0c4db18851e57..551719f55afe8dc59aebfd759bd8064dcb7620e0 100644 (file)
@@ -6,11 +6,11 @@ $("content").style.display = "none";
 
 <p><%= t 'user.confirm.press confirm button' %></p>
 
-<form id="confirm" method="post">
+<%= form_tag({}, { :id => "confirm" }) do %>
   <input type="display_name" name="confirm_string" value="<%= params[:display_name] %>">
   <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
   <input type="submit" name="confirm_action" value="<%= t 'user.confirm.button' %>">
-</form>
+<% end %>
 
 <script>
 $("confirm").submit();