Created
May 10, 2014 20:54
-
-
Save renchap/d63e3b670efa2ddf60fc to your computer and use it in GitHub Desktop.
This file contains 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
form = new FormData() | |
form.append('character[name]', name) | |
form.append('character[year]', year) | |
$.ajax( | |
url: $(e.currentTarget).data('post-url') | |
dataType: 'json' | |
type: 'patch' | |
data: form | |
).done (data) -> | |
console.log data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment