{"action":"created","comment":{"url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/comments/53081205","id":53081205,"diff_hunk":"@@ -0,0 +1,47 @@\n+class ResponsesController < ApplicationController\n+\n+  def create\n+    if response_params[:respondable_type] == \"Question\"\n+      question = Question.find_by(id: response_params[:respondable_id])\n+    else\n+      answer = Answer.find_by(id: response_params[:respondable_id])\n+      question = answer.question\n+    end\n+\n+    new_response = Response.new(response_params)\n+    if new_response.save\n+      flash.notice = \"Response saved!\"\n+      redirect_to question_path(question)\n+    else\n+      flash.alert = \"Response not saved, sorry!\"\n+      redirect_to question_path(question)\n+    end\n+  end\n+\n+  # def edit","path":"app/controllers/responses_controller.rb","position":21,"original_position":21,"commit_id":"529a63a444c750afa5398cf7465fbe4b5dadacb7","original_commit_id":"529a63a444c750afa5398cf7465fbe4b5dadacb7","user":{"login":"stevecass","id":1823156,"avatar_url":"https://avatars.githubusercontent.com/u/1823156?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecass","html_url":"https://github.com/stevecass","followers_url":"https://api.github.com/users/stevecass/followers","following_url":"https://api.github.com/users/stevecass/following{/other_user}","gists_url":"https://api.github.com/users/stevecass/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecass/subscriptions","organizations_url":"https://api.github.com/users/stevecass/orgs","repos_url":"https://api.github.com/users/stevecass/repos","events_url":"https://api.github.com/users/stevecass/events{/privacy}","received_events_url":"https://api.github.com/users/stevecass/received_events","type":"User","site_admin":false},"body":"Remove this - don't have comments on master","created_at":"2016-02-16T21:26:11Z","updated_at":"2016-02-16T21:26:11Z","html_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow/pull/30#discussion_r53081205","pull_request_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/comments/53081205"},"html":{"href":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow/pull/30#discussion_r53081205"},"pull_request":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30","id":59555319,"html_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow/pull/30","diff_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow/pull/30.diff","patch_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow/pull/30.patch","issue_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/30","number":30,"state":"open","locked":false,"title":"Dont merge - sc review","user":{"login":"stevecass","id":1823156,"avatar_url":"https://avatars.githubusercontent.com/u/1823156?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecass","html_url":"https://github.com/stevecass","followers_url":"https://api.github.com/users/stevecass/followers","following_url":"https://api.github.com/users/stevecass/following{/other_user}","gists_url":"https://api.github.com/users/stevecass/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecass/subscriptions","organizations_url":"https://api.github.com/users/stevecass/orgs","repos_url":"https://api.github.com/users/stevecass/repos","events_url":"https://api.github.com/users/stevecass/events{/privacy}","received_events_url":"https://api.github.com/users/stevecass/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-16T21:14:49Z","updated_at":"2016-02-16T21:26:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1749f3182bb19e04fbda58647e4f3a035727bfaa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30/commits","review_comments_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30/comments","review_comment_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/30/comments","statuses_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/statuses/529a63a444c750afa5398cf7465fbe4b5dadacb7","head":{"label":"nyc-chorus-frogs-2016:sc-review","ref":"sc-review","sha":"529a63a444c750afa5398cf7465fbe4b5dadacb7","user":{"login":"nyc-chorus-frogs-2016","id":10662012,"avatar_url":"https://avatars.githubusercontent.com/u/10662012?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-chorus-frogs-2016","html_url":"https://github.com/nyc-chorus-frogs-2016","followers_url":"https://api.github.com/users/nyc-chorus-frogs-2016/followers","following_url":"https://api.github.com/users/nyc-chorus-frogs-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-chorus-frogs-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-chorus-frogs-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-chorus-frogs-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-chorus-frogs-2016/orgs","repos_url":"https://api.github.com/users/nyc-chorus-frogs-2016/repos","events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":51545574,"name":"YaKKOverflow","full_name":"nyc-chorus-frogs-2016/YaKKOverflow","owner":{"login":"nyc-chorus-frogs-2016","id":10662012,"avatar_url":"https://avatars.githubusercontent.com/u/10662012?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-chorus-frogs-2016","html_url":"https://github.com/nyc-chorus-frogs-2016","followers_url":"https://api.github.com/users/nyc-chorus-frogs-2016/followers","following_url":"https://api.github.com/users/nyc-chorus-frogs-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-chorus-frogs-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-chorus-frogs-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-chorus-frogs-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-chorus-frogs-2016/orgs","repos_url":"https://api.github.com/users/nyc-chorus-frogs-2016/repos","events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow","description":"Yi, Kristie, KB's stack overflow clone... all about Yaks!","fork":false,"url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow","forks_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/forks","keys_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/teams","hooks_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/hooks","issue_events_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/events{/number}","events_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/events","assignees_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/assignees{/user}","branches_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/branches{/branch}","tags_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/tags","blobs_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/statuses/{sha}","languages_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/languages","stargazers_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/stargazers","contributors_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/contributors","subscribers_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/subscribers","subscription_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/subscription","commits_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/contents/{+path}","compare_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/merges","archive_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/downloads","issues_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues{/number}","pulls_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls{/number}","milestones_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/milestones{/number}","notifications_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/labels{/name}","releases_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/releases{/id}","deployments_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/deployments","created_at":"2016-02-11T20:41:26Z","updated_at":"2016-02-11T21:28:58Z","pushed_at":"2016-02-16T21:14:49Z","git_url":"git://github.com/nyc-chorus-frogs-2016/YaKKOverflow.git","ssh_url":"git@github.com:nyc-chorus-frogs-2016/YaKKOverflow.git","clone_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow.git","svn_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow","homepage":null,"size":856,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nyc-chorus-frogs-2016:review-base","ref":"review-base","sha":"8a7a33e418ff1a12c3684a209f5cd7ae38c13b8c","user":{"login":"nyc-chorus-frogs-2016","id":10662012,"avatar_url":"https://avatars.githubusercontent.com/u/10662012?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-chorus-frogs-2016","html_url":"https://github.com/nyc-chorus-frogs-2016","followers_url":"https://api.github.com/users/nyc-chorus-frogs-2016/followers","following_url":"https://api.github.com/users/nyc-chorus-frogs-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-chorus-frogs-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-chorus-frogs-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-chorus-frogs-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-chorus-frogs-2016/orgs","repos_url":"https://api.github.com/users/nyc-chorus-frogs-2016/repos","events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":51545574,"name":"YaKKOverflow","full_name":"nyc-chorus-frogs-2016/YaKKOverflow","owner":{"login":"nyc-chorus-frogs-2016","id":10662012,"avatar_url":"https://avatars.githubusercontent.com/u/10662012?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-chorus-frogs-2016","html_url":"https://github.com/nyc-chorus-frogs-2016","followers_url":"https://api.github.com/users/nyc-chorus-frogs-2016/followers","following_url":"https://api.github.com/users/nyc-chorus-frogs-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-chorus-frogs-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-chorus-frogs-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-chorus-frogs-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-chorus-frogs-2016/orgs","repos_url":"https://api.github.com/users/nyc-chorus-frogs-2016/repos","events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-chorus-frogs-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow","description":"Yi, Kristie, KB's stack overflow clone... all about Yaks!","fork":false,"url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow","forks_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/forks","keys_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/teams","hooks_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/hooks","issue_events_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/events{/number}","events_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/events","assignees_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/assignees{/user}","branches_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/branches{/branch}","tags_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/tags","blobs_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/statuses/{sha}","languages_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/languages","stargazers_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/stargazers","contributors_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/contributors","subscribers_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/subscribers","subscription_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/subscription","commits_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/contents/{+path}","compare_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/merges","archive_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/downloads","issues_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues{/number}","pulls_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls{/number}","milestones_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/milestones{/number}","notifications_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/labels{/name}","releases_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/releases{/id}","deployments_url":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/deployments","created_at":"2016-02-11T20:41:26Z","updated_at":"2016-02-11T21:28:58Z","pushed_at":"2016-02-16T21:14:49Z","git_url":"git://github.com/nyc-chorus-frogs-2016/YaKKOverflow.git","ssh_url":"git@github.com:nyc-chorus-frogs-2016/YaKKOverflow.git","clone_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow.git","svn_url":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow","homepage":null,"size":856,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30"},"html":{"href":"https://github.com/nyc-chorus-frogs-2016/YaKKOverflow/pull/30"},"issue":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/30"},"comments":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/nyc-chorus-frogs-2016/YaKKOverflow/statuses/529a63a444c750afa5398cf7465fbe4b5dadacb7"}}}}