Created
October 6, 2009 19:30
-
-
Save adamhunter/203342 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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