{"action":"created","comment":{"url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/comments/118441103","pull_request_review_id":40232399,"id":118441103,"diff_hunk":"@@ -19,10 +21,19 @@ def destroy\n     redirect_to question\n   end\n \n+  def update\n+    @answer.update(answer_params)\n+    @question = @answer.question\n+  end\n+\n+  def mark\n+    respond_with(@answer.mark_answer)\n+  end\n+\n   private\n \n   def load_answer\n-    @answer   = Answer.find(params[:id])\n+    @answer   = Answer.find(params[:answer_id] || params[:id])","path":"app/controllers/answers_controller.rb","position":31,"original_position":31,"commit_id":"e95702510755627fe8867dcbf45e1339edf48192","original_commit_id":"e95702510755627fe8867dcbf45e1339edf48192","user":{"login":"VitaliyLazebny","id":18521734,"avatar_url":"https://avatars1.githubusercontent.com/u/18521734?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyLazebny","html_url":"https://github.com/VitaliyLazebny","followers_url":"https://api.github.com/users/VitaliyLazebny/followers","following_url":"https://api.github.com/users/VitaliyLazebny/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyLazebny/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyLazebny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyLazebny/subscriptions","organizations_url":"https://api.github.com/users/VitaliyLazebny/orgs","repos_url":"https://api.github.com/users/VitaliyLazebny/repos","events_url":"https://api.github.com/users/VitaliyLazebny/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyLazebny/received_events","type":"User","site_admin":false},"body":"ну для при запросе на отметить верный ответ он и приходит.\r\nА вот, на пример, чтобы удалить ответ:\r\n\r\nStarted DELETE \"/questions/14/answers/142\" for 127.0.0.1 at 2017-05-25 11:26:45 +0300\r\nProcessing by AnswersController#destroy as HTML\r\n  Parameters: {\"authenticity_token\"=>\"pDYHchByMr4lXhGXwoDNNh/eIusLerFO8/c4WXgNt+an57ZCdU8FkvwUKrpfq2i9IfEh94UtX3LYhFAL0gIIeQ==\", \"question_id\"=>\"14\", \"id\"=>\"142\"}\r\n","created_at":"2017-05-25T08:29:48Z","updated_at":"2017-05-25T08:29:49Z","html_url":"https://github.com/VitaliyLazebny/qna/pull/5#discussion_r118441103","pull_request_url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/comments/118441103"},"html":{"href":"https://github.com/VitaliyLazebny/qna/pull/5#discussion_r118441103"},"pull_request":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5","id":122346913,"html_url":"https://github.com/VitaliyLazebny/qna/pull/5","diff_url":"https://github.com/VitaliyLazebny/qna/pull/5.diff","patch_url":"https://github.com/VitaliyLazebny/qna/pull/5.patch","issue_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues/5","number":5,"state":"open","locked":false,"title":"Task07","user":{"login":"VitaliyLazebny","id":18521734,"avatar_url":"https://avatars1.githubusercontent.com/u/18521734?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyLazebny","html_url":"https://github.com/VitaliyLazebny","followers_url":"https://api.github.com/users/VitaliyLazebny/followers","following_url":"https://api.github.com/users/VitaliyLazebny/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyLazebny/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyLazebny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyLazebny/subscriptions","organizations_url":"https://api.github.com/users/VitaliyLazebny/orgs","repos_url":"https://api.github.com/users/VitaliyLazebny/repos","events_url":"https://api.github.com/users/VitaliyLazebny/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyLazebny/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-24T23:52:29Z","updated_at":"2017-05-25T08:29:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"821459d54b3388c81307c833a747ef7c1df35f6d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5/commits","review_comments_url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5/comments","review_comment_url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues/5/comments","statuses_url":"https://api.github.com/repos/VitaliyLazebny/qna/statuses/e95702510755627fe8867dcbf45e1339edf48192","head":{"label":"VitaliyLazebny:task07","ref":"task07","sha":"e95702510755627fe8867dcbf45e1339edf48192","user":{"login":"VitaliyLazebny","id":18521734,"avatar_url":"https://avatars1.githubusercontent.com/u/18521734?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyLazebny","html_url":"https://github.com/VitaliyLazebny","followers_url":"https://api.github.com/users/VitaliyLazebny/followers","following_url":"https://api.github.com/users/VitaliyLazebny/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyLazebny/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyLazebny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyLazebny/subscriptions","organizations_url":"https://api.github.com/users/VitaliyLazebny/orgs","repos_url":"https://api.github.com/users/VitaliyLazebny/repos","events_url":"https://api.github.com/users/VitaliyLazebny/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyLazebny/received_events","type":"User","site_admin":false},"repo":{"id":85700480,"name":"qna","full_name":"VitaliyLazebny/qna","owner":{"login":"VitaliyLazebny","id":18521734,"avatar_url":"https://avatars1.githubusercontent.com/u/18521734?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyLazebny","html_url":"https://github.com/VitaliyLazebny","followers_url":"https://api.github.com/users/VitaliyLazebny/followers","following_url":"https://api.github.com/users/VitaliyLazebny/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyLazebny/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyLazebny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyLazebny/subscriptions","organizations_url":"https://api.github.com/users/VitaliyLazebny/orgs","repos_url":"https://api.github.com/users/VitaliyLazebny/repos","events_url":"https://api.github.com/users/VitaliyLazebny/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyLazebny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitaliyLazebny/qna","description":null,"fork":false,"url":"https://api.github.com/repos/VitaliyLazebny/qna","forks_url":"https://api.github.com/repos/VitaliyLazebny/qna/forks","keys_url":"https://api.github.com/repos/VitaliyLazebny/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitaliyLazebny/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitaliyLazebny/qna/teams","hooks_url":"https://api.github.com/repos/VitaliyLazebny/qna/hooks","issue_events_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues/events{/number}","events_url":"https://api.github.com/repos/VitaliyLazebny/qna/events","assignees_url":"https://api.github.com/repos/VitaliyLazebny/qna/assignees{/user}","branches_url":"https://api.github.com/repos/VitaliyLazebny/qna/branches{/branch}","tags_url":"https://api.github.com/repos/VitaliyLazebny/qna/tags","blobs_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitaliyLazebny/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/VitaliyLazebny/qna/languages","stargazers_url":"https://api.github.com/repos/VitaliyLazebny/qna/stargazers","contributors_url":"https://api.github.com/repos/VitaliyLazebny/qna/contributors","subscribers_url":"https://api.github.com/repos/VitaliyLazebny/qna/subscribers","subscription_url":"https://api.github.com/repos/VitaliyLazebny/qna/subscription","commits_url":"https://api.github.com/repos/VitaliyLazebny/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitaliyLazebny/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitaliyLazebny/qna/contents/{+path}","compare_url":"https://api.github.com/repos/VitaliyLazebny/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitaliyLazebny/qna/merges","archive_url":"https://api.github.com/repos/VitaliyLazebny/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitaliyLazebny/qna/downloads","issues_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues{/number}","pulls_url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/VitaliyLazebny/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/VitaliyLazebny/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitaliyLazebny/qna/labels{/name}","releases_url":"https://api.github.com/repos/VitaliyLazebny/qna/releases{/id}","deployments_url":"https://api.github.com/repos/VitaliyLazebny/qna/deployments","created_at":"2017-03-21T12:42:56Z","updated_at":"2017-03-21T12:43:37Z","pushed_at":"2017-05-24T23:52:30Z","git_url":"git://github.com/VitaliyLazebny/qna.git","ssh_url":"git@github.com:VitaliyLazebny/qna.git","clone_url":"https://github.com/VitaliyLazebny/qna.git","svn_url":"https://github.com/VitaliyLazebny/qna","homepage":null,"size":106,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"VitaliyLazebny:master","ref":"master","sha":"bb2845283a005da575af3b8429fc08e813b670a4","user":{"login":"VitaliyLazebny","id":18521734,"avatar_url":"https://avatars1.githubusercontent.com/u/18521734?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyLazebny","html_url":"https://github.com/VitaliyLazebny","followers_url":"https://api.github.com/users/VitaliyLazebny/followers","following_url":"https://api.github.com/users/VitaliyLazebny/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyLazebny/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyLazebny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyLazebny/subscriptions","organizations_url":"https://api.github.com/users/VitaliyLazebny/orgs","repos_url":"https://api.github.com/users/VitaliyLazebny/repos","events_url":"https://api.github.com/users/VitaliyLazebny/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyLazebny/received_events","type":"User","site_admin":false},"repo":{"id":85700480,"name":"qna","full_name":"VitaliyLazebny/qna","owner":{"login":"VitaliyLazebny","id":18521734,"avatar_url":"https://avatars1.githubusercontent.com/u/18521734?v=3","gravatar_id":"","url":"https://api.github.com/users/VitaliyLazebny","html_url":"https://github.com/VitaliyLazebny","followers_url":"https://api.github.com/users/VitaliyLazebny/followers","following_url":"https://api.github.com/users/VitaliyLazebny/following{/other_user}","gists_url":"https://api.github.com/users/VitaliyLazebny/gists{/gist_id}","starred_url":"https://api.github.com/users/VitaliyLazebny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VitaliyLazebny/subscriptions","organizations_url":"https://api.github.com/users/VitaliyLazebny/orgs","repos_url":"https://api.github.com/users/VitaliyLazebny/repos","events_url":"https://api.github.com/users/VitaliyLazebny/events{/privacy}","received_events_url":"https://api.github.com/users/VitaliyLazebny/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VitaliyLazebny/qna","description":null,"fork":false,"url":"https://api.github.com/repos/VitaliyLazebny/qna","forks_url":"https://api.github.com/repos/VitaliyLazebny/qna/forks","keys_url":"https://api.github.com/repos/VitaliyLazebny/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VitaliyLazebny/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VitaliyLazebny/qna/teams","hooks_url":"https://api.github.com/repos/VitaliyLazebny/qna/hooks","issue_events_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues/events{/number}","events_url":"https://api.github.com/repos/VitaliyLazebny/qna/events","assignees_url":"https://api.github.com/repos/VitaliyLazebny/qna/assignees{/user}","branches_url":"https://api.github.com/repos/VitaliyLazebny/qna/branches{/branch}","tags_url":"https://api.github.com/repos/VitaliyLazebny/qna/tags","blobs_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VitaliyLazebny/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/VitaliyLazebny/qna/languages","stargazers_url":"https://api.github.com/repos/VitaliyLazebny/qna/stargazers","contributors_url":"https://api.github.com/repos/VitaliyLazebny/qna/contributors","subscribers_url":"https://api.github.com/repos/VitaliyLazebny/qna/subscribers","subscription_url":"https://api.github.com/repos/VitaliyLazebny/qna/subscription","commits_url":"https://api.github.com/repos/VitaliyLazebny/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/VitaliyLazebny/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/VitaliyLazebny/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/VitaliyLazebny/qna/contents/{+path}","compare_url":"https://api.github.com/repos/VitaliyLazebny/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VitaliyLazebny/qna/merges","archive_url":"https://api.github.com/repos/VitaliyLazebny/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VitaliyLazebny/qna/downloads","issues_url":"https://api.github.com/repos/VitaliyLazebny/qna/issues{/number}","pulls_url":"https://api.github.com/repos/VitaliyLazebny/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/VitaliyLazebny/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/VitaliyLazebny/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VitaliyLazebny/qna/labels{/name}","releases_url":"https://api.github.com/repos/VitaliyLazebny/qna/releases{/id}","deployments_url":"https://api.github.com/repos/VitaliyLazebny/qna/deployments","created_at":"2017-03-21T12:42:56Z","updated_at":"2017-03-21T12:43:37Z","pushed_at":"2017-05-24T23:52:30Z","git_url":"git://github.com/VitaliyLazebny/qna.git","ssh_url":"git@github.com:VitaliyLazebny/qna.git","clone_url":"https://github.com/VitaliyLazebny/qna.git","svn_url":"https://github.com/VitaliyLazebny/qna","homepage":null,"size":106,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5"},"html":{"href":"https://github.com/VitaliyLazebny/qna/pull/5"},"issue":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/issues/5"},"comments":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/VitaliyLazebny/qna/statuses/e95702510755627fe8867dcbf45e1339edf48192"}}}}
{"actor":{"display_login":"VitaliyLazebny"}}