Skip to content

Instantly share code, notes, and snippets.

@adamhunter
Created October 6, 2009 19:30
Show Gist options
  • Select an option

  • Save adamhunter/203342 to your computer and use it in GitHub Desktop.

Select an option

Save adamhunter/203342 to your computer and use it in GitHub Desktop.
// handy rails form posting with authenticity token
$.post($this.attr('href'), {
'_method' : 'delete',
'authenticity_token' : $('form:first input[name=authenticity_token]').val()
}, null, 'script')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment