{"action":"created","comment":{"url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/comments/36594324","id":36594324,"diff_hunk":"@@ -0,0 +1,30 @@\n+$(document).ready(function() {\n+  return $('.completeHabit').on('click', function(e) {\n+    var complete_url, dailyHabitID, div;\n+    e.preventDefault();\n+    dailyHabitID = $(e.currentTarget).data('id');\n+    complete_url = $(e.currentTarget).data('complete-url');\n+    div = $(e.currentTarget);\n+    return $.ajax({\n+      url: complete_url,","path":"app/assets/javascripts/daily_habit.js","position":9,"original_position":9,"commit_id":"ba5007d12bacca1a93178ab62aed1b5aaf43425f","original_commit_id":"ba5007d12bacca1a93178ab62aed1b5aaf43425f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'complete_url' is not in camel case.","created_at":"2015-08-09T22:13:27Z","updated_at":"2015-08-09T22:13:27Z","html_url":"https://github.com/SpencerCDixon/HabitsuV2/pull/19#discussion_r36594324","pull_request_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/comments/36594324"},"html":{"href":"https://github.com/SpencerCDixon/HabitsuV2/pull/19#discussion_r36594324"},"pull_request":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19","id":41978085,"html_url":"https://github.com/SpencerCDixon/HabitsuV2/pull/19","diff_url":"https://github.com/SpencerCDixon/HabitsuV2/pull/19.diff","patch_url":"https://github.com/SpencerCDixon/HabitsuV2/pull/19.patch","issue_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/19","number":19,"state":"open","locked":false,"title":"Redo daily habit buttons","user":{"login":"paulmthiebauth","id":9626789,"avatar_url":"https://avatars.githubusercontent.com/u/9626789?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmthiebauth","html_url":"https://github.com/paulmthiebauth","followers_url":"https://api.github.com/users/paulmthiebauth/followers","following_url":"https://api.github.com/users/paulmthiebauth/following{/other_user}","gists_url":"https://api.github.com/users/paulmthiebauth/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmthiebauth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmthiebauth/subscriptions","organizations_url":"https://api.github.com/users/paulmthiebauth/orgs","repos_url":"https://api.github.com/users/paulmthiebauth/repos","events_url":"https://api.github.com/users/paulmthiebauth/events{/privacy}","received_events_url":"https://api.github.com/users/paulmthiebauth/received_events","type":"User","site_admin":false},"body":"Crush it now done via AJAX, messages posted on success return call.  Originally done in coffee script but now converted into JS, works fine.  Getting a goofy coffee_script error even after removing everything coffee_script related...","created_at":"2015-08-09T22:12:29Z","updated_at":"2015-08-09T22:13:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8aae101d0460363a3befc19a1a8e7c2e49fdf94","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19/commits","review_comments_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19/comments","review_comment_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/19/comments","statuses_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/statuses/ba5007d12bacca1a93178ab62aed1b5aaf43425f","head":{"label":"SpencerCDixon:redo_daily_habit_buttons","ref":"redo_daily_habit_buttons","sha":"ba5007d12bacca1a93178ab62aed1b5aaf43425f","user":{"login":"SpencerCDixon","id":7471018,"avatar_url":"https://avatars.githubusercontent.com/u/7471018?v=3","gravatar_id":"","url":"https://api.github.com/users/SpencerCDixon","html_url":"https://github.com/SpencerCDixon","followers_url":"https://api.github.com/users/SpencerCDixon/followers","following_url":"https://api.github.com/users/SpencerCDixon/following{/other_user}","gists_url":"https://api.github.com/users/SpencerCDixon/gists{/gist_id}","starred_url":"https://api.github.com/users/SpencerCDixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpencerCDixon/subscriptions","organizations_url":"https://api.github.com/users/SpencerCDixon/orgs","repos_url":"https://api.github.com/users/SpencerCDixon/repos","events_url":"https://api.github.com/users/SpencerCDixon/events{/privacy}","received_events_url":"https://api.github.com/users/SpencerCDixon/received_events","type":"User","site_admin":false},"repo":{"id":38494177,"name":"HabitsuV2","full_name":"SpencerCDixon/HabitsuV2","owner":{"login":"SpencerCDixon","id":7471018,"avatar_url":"https://avatars.githubusercontent.com/u/7471018?v=3","gravatar_id":"","url":"https://api.github.com/users/SpencerCDixon","html_url":"https://github.com/SpencerCDixon","followers_url":"https://api.github.com/users/SpencerCDixon/followers","following_url":"https://api.github.com/users/SpencerCDixon/following{/other_user}","gists_url":"https://api.github.com/users/SpencerCDixon/gists{/gist_id}","starred_url":"https://api.github.com/users/SpencerCDixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpencerCDixon/subscriptions","organizations_url":"https://api.github.com/users/SpencerCDixon/orgs","repos_url":"https://api.github.com/users/SpencerCDixon/repos","events_url":"https://api.github.com/users/SpencerCDixon/events{/privacy}","received_events_url":"https://api.github.com/users/SpencerCDixon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpencerCDixon/HabitsuV2","description":"Rails app using Twilio and Chart.js to track habits and display data about them","fork":false,"url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2","forks_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/forks","keys_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/teams","hooks_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/hooks","issue_events_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/events{/number}","events_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/events","assignees_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/assignees{/user}","branches_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/branches{/branch}","tags_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/tags","blobs_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/statuses/{sha}","languages_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/languages","stargazers_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/stargazers","contributors_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/contributors","subscribers_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/subscribers","subscription_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/subscription","commits_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/contents/{+path}","compare_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/merges","archive_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/downloads","issues_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues{/number}","pulls_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls{/number}","milestones_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/milestones{/number}","notifications_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/labels{/name}","releases_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/releases{/id}","created_at":"2015-07-03T13:32:17Z","updated_at":"2015-07-22T01:06:27Z","pushed_at":"2015-08-09T22:12:29Z","git_url":"git://github.com/SpencerCDixon/HabitsuV2.git","ssh_url":"git@github.com:SpencerCDixon/HabitsuV2.git","clone_url":"https://github.com/SpencerCDixon/HabitsuV2.git","svn_url":"https://github.com/SpencerCDixon/HabitsuV2","homepage":null,"size":4096,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"SpencerCDixon:master","ref":"master","sha":"c2b5893d2680c83a7367063fab8ac614fa7585be","user":{"login":"SpencerCDixon","id":7471018,"avatar_url":"https://avatars.githubusercontent.com/u/7471018?v=3","gravatar_id":"","url":"https://api.github.com/users/SpencerCDixon","html_url":"https://github.com/SpencerCDixon","followers_url":"https://api.github.com/users/SpencerCDixon/followers","following_url":"https://api.github.com/users/SpencerCDixon/following{/other_user}","gists_url":"https://api.github.com/users/SpencerCDixon/gists{/gist_id}","starred_url":"https://api.github.com/users/SpencerCDixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpencerCDixon/subscriptions","organizations_url":"https://api.github.com/users/SpencerCDixon/orgs","repos_url":"https://api.github.com/users/SpencerCDixon/repos","events_url":"https://api.github.com/users/SpencerCDixon/events{/privacy}","received_events_url":"https://api.github.com/users/SpencerCDixon/received_events","type":"User","site_admin":false},"repo":{"id":38494177,"name":"HabitsuV2","full_name":"SpencerCDixon/HabitsuV2","owner":{"login":"SpencerCDixon","id":7471018,"avatar_url":"https://avatars.githubusercontent.com/u/7471018?v=3","gravatar_id":"","url":"https://api.github.com/users/SpencerCDixon","html_url":"https://github.com/SpencerCDixon","followers_url":"https://api.github.com/users/SpencerCDixon/followers","following_url":"https://api.github.com/users/SpencerCDixon/following{/other_user}","gists_url":"https://api.github.com/users/SpencerCDixon/gists{/gist_id}","starred_url":"https://api.github.com/users/SpencerCDixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpencerCDixon/subscriptions","organizations_url":"https://api.github.com/users/SpencerCDixon/orgs","repos_url":"https://api.github.com/users/SpencerCDixon/repos","events_url":"https://api.github.com/users/SpencerCDixon/events{/privacy}","received_events_url":"https://api.github.com/users/SpencerCDixon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SpencerCDixon/HabitsuV2","description":"Rails app using Twilio and Chart.js to track habits and display data about them","fork":false,"url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2","forks_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/forks","keys_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/teams","hooks_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/hooks","issue_events_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/events{/number}","events_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/events","assignees_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/assignees{/user}","branches_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/branches{/branch}","tags_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/tags","blobs_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/statuses/{sha}","languages_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/languages","stargazers_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/stargazers","contributors_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/contributors","subscribers_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/subscribers","subscription_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/subscription","commits_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/comments{/number}","contents_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/contents/{+path}","compare_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/merges","archive_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/downloads","issues_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues{/number}","pulls_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls{/number}","milestones_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/milestones{/number}","notifications_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/labels{/name}","releases_url":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/releases{/id}","created_at":"2015-07-03T13:32:17Z","updated_at":"2015-07-22T01:06:27Z","pushed_at":"2015-08-09T22:12:29Z","git_url":"git://github.com/SpencerCDixon/HabitsuV2.git","ssh_url":"git@github.com:SpencerCDixon/HabitsuV2.git","clone_url":"https://github.com/SpencerCDixon/HabitsuV2.git","svn_url":"https://github.com/SpencerCDixon/HabitsuV2","homepage":null,"size":4096,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19"},"html":{"href":"https://github.com/SpencerCDixon/HabitsuV2/pull/19"},"issue":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/19"},"comments":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/SpencerCDixon/HabitsuV2/statuses/ba5007d12bacca1a93178ab62aed1b5aaf43425f"}}}}