-<script>
-$("content").style.display = "none";
-</script>
+<% content_for :head do %>
+ <%= javascript_include_tag "user" %>
+<% end %>
-<h1><%= t 'user.confirm_email.heading' %></h1>
+<% content_for(:content_class) { "user_confirm" } %>
-<p><%= t 'user.confirm_email.press confirm button' %></p>
+<% content_for :heading do %>
+ <h1><%= t '.heading' %></h1>
+<% end %>
-<form id="confirm" 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 '.press confirm button' %></p>
-<script>
-$("confirm").submit();
-</script>
+<%= form_tag({}, { :id => "confirm" }) do %>
+ <input type="hidden" name="confirm_string" value="<%= params[:confirm_string] %>">
+ <input type="submit" name="confirm_action" value="<%= t '.button' %>">
+<% end %>