{"action":"created","comment":{"url":"https://api.github.com/repos/nearkun/qna/pulls/comments/27189340","id":27189340,"diff_hunk":"@@ -3,6 +3,8 @@\n   root to: 'questions#index'\n \n   resources :questions do\n-    resources :answers\n+    resources :answers do\n+      member { patch :make_best }","path":"config/routes.rb","position":6,"original_position":6,"commit_id":"6a75260e7fa69f8470cbfda291b1c52822d30d3b","original_commit_id":"6a75260e7fa69f8470cbfda291b1c52822d30d3b","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"Если экшен одиночный, то его надо записывать не в блоков так: patch :make_best, on: :member","created_at":"2015-03-26T05:30:40Z","updated_at":"2015-03-26T05:30:40Z","html_url":"https://github.com/nearkun/qna/pull/5#discussion_r27189340","pull_request_url":"https://api.github.com/repos/nearkun/qna/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/nearkun/qna/pulls/comments/27189340"},"html":{"href":"https://github.com/nearkun/qna/pull/5#discussion_r27189340"},"pull_request":{"href":"https://api.github.com/repos/nearkun/qna/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/nearkun/qna/pulls/5","id":31876248,"html_url":"https://github.com/nearkun/qna/pull/5","diff_url":"https://github.com/nearkun/qna/pull/5.diff","patch_url":"https://github.com/nearkun/qna/pull/5.patch","issue_url":"https://api.github.com/repos/nearkun/qna/issues/5","number":5,"state":"open","locked":false,"title":"Lesson7","user":{"login":"nearkun","id":7916366,"avatar_url":"https://avatars.githubusercontent.com/u/7916366?v=3","gravatar_id":"","url":"https://api.github.com/users/nearkun","html_url":"https://github.com/nearkun","followers_url":"https://api.github.com/users/nearkun/followers","following_url":"https://api.github.com/users/nearkun/following{/other_user}","gists_url":"https://api.github.com/users/nearkun/gists{/gist_id}","starred_url":"https://api.github.com/users/nearkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nearkun/subscriptions","organizations_url":"https://api.github.com/users/nearkun/orgs","repos_url":"https://api.github.com/users/nearkun/repos","events_url":"https://api.github.com/users/nearkun/events{/privacy}","received_events_url":"https://api.github.com/users/nearkun/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-24T22:21:26Z","updated_at":"2015-03-26T05:30:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50a5b5b8a3e8d8a058dabe4bbcdf063c45ce0fa4","assignee":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/nearkun/qna/pulls/5/commits","review_comments_url":"https://api.github.com/repos/nearkun/qna/pulls/5/comments","review_comment_url":"https://api.github.com/repos/nearkun/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nearkun/qna/issues/5/comments","statuses_url":"https://api.github.com/repos/nearkun/qna/statuses/6a75260e7fa69f8470cbfda291b1c52822d30d3b","head":{"label":"nearkun:lesson7","ref":"lesson7","sha":"6a75260e7fa69f8470cbfda291b1c52822d30d3b","user":{"login":"nearkun","id":7916366,"avatar_url":"https://avatars.githubusercontent.com/u/7916366?v=3","gravatar_id":"","url":"https://api.github.com/users/nearkun","html_url":"https://github.com/nearkun","followers_url":"https://api.github.com/users/nearkun/followers","following_url":"https://api.github.com/users/nearkun/following{/other_user}","gists_url":"https://api.github.com/users/nearkun/gists{/gist_id}","starred_url":"https://api.github.com/users/nearkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nearkun/subscriptions","organizations_url":"https://api.github.com/users/nearkun/orgs","repos_url":"https://api.github.com/users/nearkun/repos","events_url":"https://api.github.com/users/nearkun/events{/privacy}","received_events_url":"https://api.github.com/users/nearkun/received_events","type":"User","site_admin":false},"repo":{"id":32334263,"name":"qna","full_name":"nearkun/qna","owner":{"login":"nearkun","id":7916366,"avatar_url":"https://avatars.githubusercontent.com/u/7916366?v=3","gravatar_id":"","url":"https://api.github.com/users/nearkun","html_url":"https://github.com/nearkun","followers_url":"https://api.github.com/users/nearkun/followers","following_url":"https://api.github.com/users/nearkun/following{/other_user}","gists_url":"https://api.github.com/users/nearkun/gists{/gist_id}","starred_url":"https://api.github.com/users/nearkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nearkun/subscriptions","organizations_url":"https://api.github.com/users/nearkun/orgs","repos_url":"https://api.github.com/users/nearkun/repos","events_url":"https://api.github.com/users/nearkun/events{/privacy}","received_events_url":"https://api.github.com/users/nearkun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nearkun/qna","description":"","fork":false,"url":"https://api.github.com/repos/nearkun/qna","forks_url":"https://api.github.com/repos/nearkun/qna/forks","keys_url":"https://api.github.com/repos/nearkun/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nearkun/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nearkun/qna/teams","hooks_url":"https://api.github.com/repos/nearkun/qna/hooks","issue_events_url":"https://api.github.com/repos/nearkun/qna/issues/events{/number}","events_url":"https://api.github.com/repos/nearkun/qna/events","assignees_url":"https://api.github.com/repos/nearkun/qna/assignees{/user}","branches_url":"https://api.github.com/repos/nearkun/qna/branches{/branch}","tags_url":"https://api.github.com/repos/nearkun/qna/tags","blobs_url":"https://api.github.com/repos/nearkun/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nearkun/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nearkun/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/nearkun/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nearkun/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/nearkun/qna/languages","stargazers_url":"https://api.github.com/repos/nearkun/qna/stargazers","contributors_url":"https://api.github.com/repos/nearkun/qna/contributors","subscribers_url":"https://api.github.com/repos/nearkun/qna/subscribers","subscription_url":"https://api.github.com/repos/nearkun/qna/subscription","commits_url":"https://api.github.com/repos/nearkun/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/nearkun/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/nearkun/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/nearkun/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/nearkun/qna/contents/{+path}","compare_url":"https://api.github.com/repos/nearkun/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nearkun/qna/merges","archive_url":"https://api.github.com/repos/nearkun/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nearkun/qna/downloads","issues_url":"https://api.github.com/repos/nearkun/qna/issues{/number}","pulls_url":"https://api.github.com/repos/nearkun/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/nearkun/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/nearkun/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nearkun/qna/labels{/name}","releases_url":"https://api.github.com/repos/nearkun/qna/releases{/id}","created_at":"2015-03-16T15:25:53Z","updated_at":"2015-03-20T17:50:25Z","pushed_at":"2015-03-24T22:21:26Z","git_url":"git://github.com/nearkun/qna.git","ssh_url":"git@github.com:nearkun/qna.git","clone_url":"https://github.com/nearkun/qna.git","svn_url":"https://github.com/nearkun/qna","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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":"nearkun:master","ref":"master","sha":"7f3f8ea793099650fc7ac8e745bbb3b5c23dfc3b","user":{"login":"nearkun","id":7916366,"avatar_url":"https://avatars.githubusercontent.com/u/7916366?v=3","gravatar_id":"","url":"https://api.github.com/users/nearkun","html_url":"https://github.com/nearkun","followers_url":"https://api.github.com/users/nearkun/followers","following_url":"https://api.github.com/users/nearkun/following{/other_user}","gists_url":"https://api.github.com/users/nearkun/gists{/gist_id}","starred_url":"https://api.github.com/users/nearkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nearkun/subscriptions","organizations_url":"https://api.github.com/users/nearkun/orgs","repos_url":"https://api.github.com/users/nearkun/repos","events_url":"https://api.github.com/users/nearkun/events{/privacy}","received_events_url":"https://api.github.com/users/nearkun/received_events","type":"User","site_admin":false},"repo":{"id":32334263,"name":"qna","full_name":"nearkun/qna","owner":{"login":"nearkun","id":7916366,"avatar_url":"https://avatars.githubusercontent.com/u/7916366?v=3","gravatar_id":"","url":"https://api.github.com/users/nearkun","html_url":"https://github.com/nearkun","followers_url":"https://api.github.com/users/nearkun/followers","following_url":"https://api.github.com/users/nearkun/following{/other_user}","gists_url":"https://api.github.com/users/nearkun/gists{/gist_id}","starred_url":"https://api.github.com/users/nearkun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nearkun/subscriptions","organizations_url":"https://api.github.com/users/nearkun/orgs","repos_url":"https://api.github.com/users/nearkun/repos","events_url":"https://api.github.com/users/nearkun/events{/privacy}","received_events_url":"https://api.github.com/users/nearkun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nearkun/qna","description":"","fork":false,"url":"https://api.github.com/repos/nearkun/qna","forks_url":"https://api.github.com/repos/nearkun/qna/forks","keys_url":"https://api.github.com/repos/nearkun/qna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nearkun/qna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nearkun/qna/teams","hooks_url":"https://api.github.com/repos/nearkun/qna/hooks","issue_events_url":"https://api.github.com/repos/nearkun/qna/issues/events{/number}","events_url":"https://api.github.com/repos/nearkun/qna/events","assignees_url":"https://api.github.com/repos/nearkun/qna/assignees{/user}","branches_url":"https://api.github.com/repos/nearkun/qna/branches{/branch}","tags_url":"https://api.github.com/repos/nearkun/qna/tags","blobs_url":"https://api.github.com/repos/nearkun/qna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nearkun/qna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nearkun/qna/git/refs{/sha}","trees_url":"https://api.github.com/repos/nearkun/qna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nearkun/qna/statuses/{sha}","languages_url":"https://api.github.com/repos/nearkun/qna/languages","stargazers_url":"https://api.github.com/repos/nearkun/qna/stargazers","contributors_url":"https://api.github.com/repos/nearkun/qna/contributors","subscribers_url":"https://api.github.com/repos/nearkun/qna/subscribers","subscription_url":"https://api.github.com/repos/nearkun/qna/subscription","commits_url":"https://api.github.com/repos/nearkun/qna/commits{/sha}","git_commits_url":"https://api.github.com/repos/nearkun/qna/git/commits{/sha}","comments_url":"https://api.github.com/repos/nearkun/qna/comments{/number}","issue_comment_url":"https://api.github.com/repos/nearkun/qna/issues/comments{/number}","contents_url":"https://api.github.com/repos/nearkun/qna/contents/{+path}","compare_url":"https://api.github.com/repos/nearkun/qna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nearkun/qna/merges","archive_url":"https://api.github.com/repos/nearkun/qna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nearkun/qna/downloads","issues_url":"https://api.github.com/repos/nearkun/qna/issues{/number}","pulls_url":"https://api.github.com/repos/nearkun/qna/pulls{/number}","milestones_url":"https://api.github.com/repos/nearkun/qna/milestones{/number}","notifications_url":"https://api.github.com/repos/nearkun/qna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nearkun/qna/labels{/name}","releases_url":"https://api.github.com/repos/nearkun/qna/releases{/id}","created_at":"2015-03-16T15:25:53Z","updated_at":"2015-03-20T17:50:25Z","pushed_at":"2015-03-24T22:21:26Z","git_url":"git://github.com/nearkun/qna.git","ssh_url":"git@github.com:nearkun/qna.git","clone_url":"https://github.com/nearkun/qna.git","svn_url":"https://github.com/nearkun/qna","homepage":null,"size":252,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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/nearkun/qna/pulls/5"},"html":{"href":"https://github.com/nearkun/qna/pull/5"},"issue":{"href":"https://api.github.com/repos/nearkun/qna/issues/5"},"comments":{"href":"https://api.github.com/repos/nearkun/qna/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/nearkun/qna/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/nearkun/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nearkun/qna/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/nearkun/qna/statuses/6a75260e7fa69f8470cbfda291b1c52822d30d3b"}}}}