Skip to content

Instantly share code, notes, and snippets.

@HungYuHei
Created October 19, 2011 15:45
Show Gist options
  • Select an option

  • Save HungYuHei/1298689 to your computer and use it in GitHub Desktop.

Select an option

Save HungYuHei/1298689 to your computer and use it in GitHub Desktop.
rails csrf
skip_before_filter :verify_authenticity_token
<%= tag(:input, :type => "hidden", :name => request_forgery_protection_token.to_s, :value => form_authenticity_token) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment