{"action":"created","comment":{"url":"https://api.github.com/repos/nikfor/answers/pulls/comments/75575695","id":75575695,"diff_hunk":"@@ -40,7 +40,7 @@ def question_params\n   end\n \n   def find_question\n-    @question = Question.find_by(id: params[:id])\n+    @question = Question.find(params[:id])\n     render_404 unless @question","path":"app/controllers/questions_controller.rb","position":null,"original_position":6,"commit_id":"ce4cf2a0c5c1d57988625bbbb2b072042db8da57","original_commit_id":"ce4cf2a0c5c1d57988625bbbb2b072042db8da57","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":"Не нужно рендерить 404 ошибку, рельсы и так это делают автоматом, да и проверка такая не пройдет. `find` выбрасывает исключение, если ничего не нашел. В dev-режиме, ты видишь это исключение,а в продакшене, рельсы ставят обработчик и показывают как раз 404 ошибку","created_at":"2016-08-20T09:20:07Z","updated_at":"2016-08-20T09:20:07Z","html_url":"https://github.com/nikfor/answers/pull/2#discussion_r75575695","pull_request_url":"https://api.github.com/repos/nikfor/answers/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/nikfor/answers/pulls/comments/75575695"},"html":{"href":"https://github.com/nikfor/answers/pull/2#discussion_r75575695"},"pull_request":{"href":"https://api.github.com/repos/nikfor/answers/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nikfor/answers/pulls/2","id":81735575,"html_url":"https://github.com/nikfor/answers/pull/2","diff_url":"https://github.com/nikfor/answers/pull/2.diff","patch_url":"https://github.com/nikfor/answers/pull/2.patch","issue_url":"https://api.github.com/repos/nikfor/answers/issues/2","number":2,"state":"open","locked":false,"title":"fourth-part","user":{"login":"nikfor","id":11295960,"avatar_url":"https://avatars.githubusercontent.com/u/11295960?v=3","gravatar_id":"","url":"https://api.github.com/users/nikfor","html_url":"https://github.com/nikfor","followers_url":"https://api.github.com/users/nikfor/followers","following_url":"https://api.github.com/users/nikfor/following{/other_user}","gists_url":"https://api.github.com/users/nikfor/gists{/gist_id}","starred_url":"https://api.github.com/users/nikfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikfor/subscriptions","organizations_url":"https://api.github.com/users/nikfor/orgs","repos_url":"https://api.github.com/users/nikfor/repos","events_url":"https://api.github.com/users/nikfor/events{/privacy}","received_events_url":"https://api.github.com/users/nikfor/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-17T23:38:58Z","updated_at":"2016-08-20T09:20:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a083aaa80d7805c7c8c45298f834666a03de8b2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nikfor/answers/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nikfor/answers/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nikfor/answers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nikfor/answers/issues/2/comments","statuses_url":"https://api.github.com/repos/nikfor/answers/statuses/ce4cf2a0c5c1d57988625bbbb2b072042db8da57","head":{"label":"nikfor:fourth-part","ref":"fourth-part","sha":"ce4cf2a0c5c1d57988625bbbb2b072042db8da57","user":{"login":"nikfor","id":11295960,"avatar_url":"https://avatars.githubusercontent.com/u/11295960?v=3","gravatar_id":"","url":"https://api.github.com/users/nikfor","html_url":"https://github.com/nikfor","followers_url":"https://api.github.com/users/nikfor/followers","following_url":"https://api.github.com/users/nikfor/following{/other_user}","gists_url":"https://api.github.com/users/nikfor/gists{/gist_id}","starred_url":"https://api.github.com/users/nikfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikfor/subscriptions","organizations_url":"https://api.github.com/users/nikfor/orgs","repos_url":"https://api.github.com/users/nikfor/repos","events_url":"https://api.github.com/users/nikfor/events{/privacy}","received_events_url":"https://api.github.com/users/nikfor/received_events","type":"User","site_admin":false},"repo":{"id":65325655,"name":"answers","full_name":"nikfor/answers","owner":{"login":"nikfor","id":11295960,"avatar_url":"https://avatars.githubusercontent.com/u/11295960?v=3","gravatar_id":"","url":"https://api.github.com/users/nikfor","html_url":"https://github.com/nikfor","followers_url":"https://api.github.com/users/nikfor/followers","following_url":"https://api.github.com/users/nikfor/following{/other_user}","gists_url":"https://api.github.com/users/nikfor/gists{/gist_id}","starred_url":"https://api.github.com/users/nikfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikfor/subscriptions","organizations_url":"https://api.github.com/users/nikfor/orgs","repos_url":"https://api.github.com/users/nikfor/repos","events_url":"https://api.github.com/users/nikfor/events{/privacy}","received_events_url":"https://api.github.com/users/nikfor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikfor/answers","description":null,"fork":false,"url":"https://api.github.com/repos/nikfor/answers","forks_url":"https://api.github.com/repos/nikfor/answers/forks","keys_url":"https://api.github.com/repos/nikfor/answers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikfor/answers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikfor/answers/teams","hooks_url":"https://api.github.com/repos/nikfor/answers/hooks","issue_events_url":"https://api.github.com/repos/nikfor/answers/issues/events{/number}","events_url":"https://api.github.com/repos/nikfor/answers/events","assignees_url":"https://api.github.com/repos/nikfor/answers/assignees{/user}","branches_url":"https://api.github.com/repos/nikfor/answers/branches{/branch}","tags_url":"https://api.github.com/repos/nikfor/answers/tags","blobs_url":"https://api.github.com/repos/nikfor/answers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikfor/answers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikfor/answers/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikfor/answers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikfor/answers/statuses/{sha}","languages_url":"https://api.github.com/repos/nikfor/answers/languages","stargazers_url":"https://api.github.com/repos/nikfor/answers/stargazers","contributors_url":"https://api.github.com/repos/nikfor/answers/contributors","subscribers_url":"https://api.github.com/repos/nikfor/answers/subscribers","subscription_url":"https://api.github.com/repos/nikfor/answers/subscription","commits_url":"https://api.github.com/repos/nikfor/answers/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikfor/answers/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikfor/answers/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikfor/answers/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikfor/answers/contents/{+path}","compare_url":"https://api.github.com/repos/nikfor/answers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikfor/answers/merges","archive_url":"https://api.github.com/repos/nikfor/answers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikfor/answers/downloads","issues_url":"https://api.github.com/repos/nikfor/answers/issues{/number}","pulls_url":"https://api.github.com/repos/nikfor/answers/pulls{/number}","milestones_url":"https://api.github.com/repos/nikfor/answers/milestones{/number}","notifications_url":"https://api.github.com/repos/nikfor/answers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikfor/answers/labels{/name}","releases_url":"https://api.github.com/repos/nikfor/answers/releases{/id}","deployments_url":"https://api.github.com/repos/nikfor/answers/deployments","created_at":"2016-08-09T20:23:24Z","updated_at":"2016-08-09T20:31:31Z","pushed_at":"2016-08-19T23:49:43Z","git_url":"git://github.com/nikfor/answers.git","ssh_url":"git@github.com:nikfor/answers.git","clone_url":"https://github.com/nikfor/answers.git","svn_url":"https://github.com/nikfor/answers","homepage":null,"size":39,"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":"nikfor:master","ref":"master","sha":"b377ce8d9083d3653745ca5b08c2a6b2d50e042b","user":{"login":"nikfor","id":11295960,"avatar_url":"https://avatars.githubusercontent.com/u/11295960?v=3","gravatar_id":"","url":"https://api.github.com/users/nikfor","html_url":"https://github.com/nikfor","followers_url":"https://api.github.com/users/nikfor/followers","following_url":"https://api.github.com/users/nikfor/following{/other_user}","gists_url":"https://api.github.com/users/nikfor/gists{/gist_id}","starred_url":"https://api.github.com/users/nikfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikfor/subscriptions","organizations_url":"https://api.github.com/users/nikfor/orgs","repos_url":"https://api.github.com/users/nikfor/repos","events_url":"https://api.github.com/users/nikfor/events{/privacy}","received_events_url":"https://api.github.com/users/nikfor/received_events","type":"User","site_admin":false},"repo":{"id":65325655,"name":"answers","full_name":"nikfor/answers","owner":{"login":"nikfor","id":11295960,"avatar_url":"https://avatars.githubusercontent.com/u/11295960?v=3","gravatar_id":"","url":"https://api.github.com/users/nikfor","html_url":"https://github.com/nikfor","followers_url":"https://api.github.com/users/nikfor/followers","following_url":"https://api.github.com/users/nikfor/following{/other_user}","gists_url":"https://api.github.com/users/nikfor/gists{/gist_id}","starred_url":"https://api.github.com/users/nikfor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikfor/subscriptions","organizations_url":"https://api.github.com/users/nikfor/orgs","repos_url":"https://api.github.com/users/nikfor/repos","events_url":"https://api.github.com/users/nikfor/events{/privacy}","received_events_url":"https://api.github.com/users/nikfor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikfor/answers","description":null,"fork":false,"url":"https://api.github.com/repos/nikfor/answers","forks_url":"https://api.github.com/repos/nikfor/answers/forks","keys_url":"https://api.github.com/repos/nikfor/answers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikfor/answers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikfor/answers/teams","hooks_url":"https://api.github.com/repos/nikfor/answers/hooks","issue_events_url":"https://api.github.com/repos/nikfor/answers/issues/events{/number}","events_url":"https://api.github.com/repos/nikfor/answers/events","assignees_url":"https://api.github.com/repos/nikfor/answers/assignees{/user}","branches_url":"https://api.github.com/repos/nikfor/answers/branches{/branch}","tags_url":"https://api.github.com/repos/nikfor/answers/tags","blobs_url":"https://api.github.com/repos/nikfor/answers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikfor/answers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikfor/answers/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikfor/answers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikfor/answers/statuses/{sha}","languages_url":"https://api.github.com/repos/nikfor/answers/languages","stargazers_url":"https://api.github.com/repos/nikfor/answers/stargazers","contributors_url":"https://api.github.com/repos/nikfor/answers/contributors","subscribers_url":"https://api.github.com/repos/nikfor/answers/subscribers","subscription_url":"https://api.github.com/repos/nikfor/answers/subscription","commits_url":"https://api.github.com/repos/nikfor/answers/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikfor/answers/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikfor/answers/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikfor/answers/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikfor/answers/contents/{+path}","compare_url":"https://api.github.com/repos/nikfor/answers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikfor/answers/merges","archive_url":"https://api.github.com/repos/nikfor/answers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikfor/answers/downloads","issues_url":"https://api.github.com/repos/nikfor/answers/issues{/number}","pulls_url":"https://api.github.com/repos/nikfor/answers/pulls{/number}","milestones_url":"https://api.github.com/repos/nikfor/answers/milestones{/number}","notifications_url":"https://api.github.com/repos/nikfor/answers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikfor/answers/labels{/name}","releases_url":"https://api.github.com/repos/nikfor/answers/releases{/id}","deployments_url":"https://api.github.com/repos/nikfor/answers/deployments","created_at":"2016-08-09T20:23:24Z","updated_at":"2016-08-09T20:31:31Z","pushed_at":"2016-08-19T23:49:43Z","git_url":"git://github.com/nikfor/answers.git","ssh_url":"git@github.com:nikfor/answers.git","clone_url":"https://github.com/nikfor/answers.git","svn_url":"https://github.com/nikfor/answers","homepage":null,"size":39,"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/nikfor/answers/pulls/2"},"html":{"href":"https://github.com/nikfor/answers/pull/2"},"issue":{"href":"https://api.github.com/repos/nikfor/answers/issues/2"},"comments":{"href":"https://api.github.com/repos/nikfor/answers/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nikfor/answers/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nikfor/answers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nikfor/answers/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nikfor/answers/statuses/ce4cf2a0c5c1d57988625bbbb2b072042db8da57"}}}}
{"actor":{"display_login":"vkurennov"}}