Skip to content

Instantly share code, notes, and snippets.

@tekin
Created June 30, 2009 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tekin/138333 to your computer and use it in GitHub Desktop.
Save tekin/138333 to your computer and use it in GitHub Desktop.
<% form_tag new_order_payment_path(@order), :id => 'reload_frame', :target => '_top', :method => 'get' do %>
<%= hidden_field_tag :verification_failed, true %>
<noscript>
<p>Verification failed, click the button below to try again.</p>
<%= submit_tag 'Try again' %>
</noscript>
<% end %>
<% javascript_tag do %>
window.onload=function(){
document.getElementById('reload_frame').submit();
}
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment