{"action":"closed","issue":{"url":"https://api.github.com/repos/ga-dc/wdidc5_project4/issues/78","labels_url":"https://api.github.com/repos/ga-dc/wdidc5_project4/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/ga-dc/wdidc5_project4/issues/78/comments","events_url":"https://api.github.com/repos/ga-dc/wdidc5_project4/issues/78/events","html_url":"https://github.com/ga-dc/wdidc5_project4/issues/78","id":83634772,"number":78,"title":"ajax wont fire on submit handler","user":{"login":"KMG112","id":11448912,"avatar_url":"https://avatars.githubusercontent.com/u/11448912?v=3","gravatar_id":"","url":"https://api.github.com/users/KMG112","html_url":"https://github.com/KMG112","followers_url":"https://api.github.com/users/KMG112/followers","following_url":"https://api.github.com/users/KMG112/following{/other_user}","gists_url":"https://api.github.com/users/KMG112/gists{/gist_id}","starred_url":"https://api.github.com/users/KMG112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KMG112/subscriptions","organizations_url":"https://api.github.com/users/KMG112/orgs","repos_url":"https://api.github.com/users/KMG112/repos","events_url":"https://api.github.com/users/KMG112/events{/privacy}","received_events_url":"https://api.github.com/users/KMG112/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-01T18:28:13Z","updated_at":"2015-06-01T19:14:37Z","closed_at":"2015-06-01T19:14:37Z","body":"this is my submit event\r\n```\r\n$('#new_sentence_submit').on('submit', function(){\r\n\t\tconsole.log(this);\r\n\t\t        $.ajax({\r\n\t\t\t\t  type: \"POST\",\r\n\t\t\t\t  url: \"/sentences\",\r\n\t\t\t\t  data: {'words': sentence_array},\r\n\t\t\t\t  dataType: \"json\"\r\n\t\t\t\t}).done(function (response) {\r\n\t\t\t\t  \tconsole.log(\"sent success\");\r\n\t\t\t\t  \tconsole.log(response);\r\n\t\t\t\t});\r\n\t});// new_sentence submit end\r\n```\r\n\r\nbut when I use binding.pry all i get is \r\n```\r\n[1] pry(#<SentencesController>)> params\r\n=> {\"utf8\"=>\"✓\",\r\n \"authenticity_token\"=>\r\n  \"3OhrHc5/BNBBztlpEW3vXt17UANeVDL3CKBHki7S/DcgdkmIdn9nLce9ya3TRUcfpmWmyBtBiJV2xAIlQoY1sA==\",\r\n \"commit\"=>\"Create Sentence\",\r\n \"controller\"=>\"sentences\",\r\n \"action\"=>\"create\"}\r\n```\r\nthe submit event doesn't seem to be firing off for some reason. nothing is logged in the console\r\nAny suggestions?"}}