Skip to content

Instantly share code, notes, and snippets.

@rinaldifonseca
Created January 14, 2012 21:12
Show Gist options
  • Save rinaldifonseca/1612916 to your computer and use it in GitHub Desktop.
Save rinaldifonseca/1612916 to your computer and use it in GitHub Desktop.
rails csrf-token
form_authenticity_token.to_s
headers: {
'X-Transaction': 'POST Example',
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment