<script>
-$("content").style.display = "none";
+$("#content").hide();
</script>
-<h1><%= t 'user.confirm.heading' %></h1>
+<% content_for :heading do %>
+ <h1><%= t 'user.confirm.heading' %></h1>
+<% end %>
<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();
+$("#confirm").submit();
</script>