Skip to content

Instantly share code, notes, and snippets.

@DCarper
Created August 5, 2011 19:29
Show Gist options
  • Save DCarper/1128309 to your computer and use it in GitHub Desktop.
Save DCarper/1128309 to your computer and use it in GitHub Desktop.
debugger
// $form.serialize => "authenticity_token=H38DglaC0V2fJYzFyVwmzl83iqPpgbrCbxjYeHwPoWI%3D&comment%5Bcontent%5D=adf&commit=Post+Comment"
$form.ajaxSubmit({
//$.ajax({
url: form.action + '.json',
data: $form.serialize(),
type: 'post',
//dataType: 'json',
context: $form.parent(".responses, #comments"),
success: insertComment });
{"54"=>"Y", "25"=>"a", "82"=>"t", "26"=>"C", "110"=>"m", "comment"=>{"content"=>"asdfasdf"}, "83"=>"%", "55"=>"e", "27"=>"0", "111"=>"m", "84"=>"5", "56"=>"H", "28"=>"V", "112"=>"e", "85"=>"D", "29"=>"2", "113"=>"n", "86"=>"=", "57"=>"w", "114"=>"t", "87"=>"a", "58"=>"P", "59"=>"o", "30"=>"f", "88"=>"s", "31"=>"J", "89"=>"d", "32"=>"Y", "60"=>"W", "61"=>"I", "33"=>"z", "90"=>"f", "62"=>"%", "34"=>"F", "0"=>"a", "91"=>"a", "63"=>"3", "35"=>"y", "1"=>"u", "92"=>"s", "64"=>"D", "2"=>"t", "93"=>"d", "65"=>"&", "36"=>"V", "action"=>"create", "3"=>"h", "94"=>"f", "37"=>"w", "4"=>"e", "95"=>"&", "66"=>"c", "38"=>"m", "5"=>"n", "96"=>"c", "67"=>"o", "39"=>"z", "6"=>"t", "97"=>"o", "10"=>"t", "68"=>"m", "7"=>"i", "98"=>"m", "69"=>"m", "format"=>"json", "11"=>"y", "40"=>"l", "8"=>"c", "12"=>"_", "41"=>"8", "9"=>"i", "99"=>"m", "13"=>"t", "70"=>"e", "42"=>"3", "14"=>"o", "71"=>"n", "43"=>"i", "72"=>"t", "15"=>"k", "100"=>"i", "73"=>"%", "44"=>"q", "16"=>"e", "101"=>"t", "74"=>"5", "45"=>"P", "17"=>"n", "75"=>"B", "46"=>"p", "18"=>"=", "102"=>"=", "76"=>"c", "47"=>"g", "19"=>"H", "103"=>"P", "48"=>"b", "104"=>"o", "77"=>"o", "49"=>"r", "105"=>"s", "106"=>"t", "20"=>"3", "78"=>"n", "107"=>"+", "21"=>"8", "79"=>"t", "50"=>"C", "108"=>"C", "51"=>"b", "109"=>"o", "22"=>"D", "23"=>"g", "52"=>"x", "80"=>"e", "controller"=>"comments", "81"=>"n", "24"=>"l", "53"=>"j"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment