-<h1><%= t 'user.confirm_email.heading' %></h1>
+<script>
+$("#content").hide();
+</script>
-<p><%= t 'user.confirm_email. press confirm button' %></p>
+<% content_for :heading do %>
+ <h1><%= t 'user.confirm_email.heading' %></h1>
+<% end %>
-<form method="post">
-<input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
-<input type="submit" name="confirm_action" value="<%= t 'user.confirm_email.button' %>">
-</form>
+<p><%= t 'user.confirm_email.press confirm button' %></p>
+
+<%= form_tag({}, { :id => "confirm" }) do %>
+ <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
+ <input type="submit" name="confirm_action" value="<%= t 'user.confirm_email.button' %>">
+<% end %>
+
+<script>
+$("#confirm").submit();
+</script>