{"action":"created","comment":{"url":"https://api.github.com/repos/nearkun/qna/pulls/comments/27295611","id":27295611,"diff_hunk":"@@ -33,6 +33,6 @@ def authorize_user\n   end\n \n   def answer_params\n-    params.require(:answer).permit(:body, :question_id)\n+    params.require(:answer).permit(:body, :question_id, attachments_attributes: [:file])","path":"app/controllers/answers_controller.rb","position":5,"original_position":5,"commit_id":"65d545f36b0c8e7ff5c58a649d07ea0d6f4f50f6","original_commit_id":"65d545f36b0c8e7ff5c58a649d07ea0d6f4f50f6","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":"Кстати, а зачем нам в параметрах question_id, если мы его в url передаем?","created_at":"2015-03-27T13:51:33Z","updated_at":"2015-03-27T13:51:33Z","html_url":"https://github.com/nearkun/qna/pull/6#discussion_r27295611","pull_request_url":"https://api.github.com/repos/nearkun/qna/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/nearkun/qna/pulls/comments/27295611"},"html":{"href":"https://github.com/nearkun/qna/pull/6#discussion_r27295611"},"pull_request":{"href":"https://api.github.com/repos/nearkun/qna/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/nearkun/qna/pulls/6","id":32103458,"html_url":"https://github.com/nearkun/qna/pull/6","diff_url":"https://github.com/nearkun/qna/pull/6.diff","patch_url":"https://github.com/nearkun/qna/pull/6.patch","issue_url":"https://api.github.com/repos/nearkun/qna/issues/6","number":6,"state":"open","locked":false,"title":"Lesson8","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-27T12:31:45Z","updated_at":"2015-03-27T13:51:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60df91a0e16acb3954ff74db4d0259032fa0b28b","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/6/commits","review_comments_url":"https://api.github.com/repos/nearkun/qna/pulls/6/comments","review_comment_url":"https://api.github.com/repos/nearkun/qna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nearkun/qna/issues/6/comments","statuses_url":"https://api.github.com/repos/nearkun/qna/statuses/65d545f36b0c8e7ff5c58a649d07ea0d6f4f50f6","head":{"label":"nearkun:lesson8","ref":"lesson8","sha":"65d545f36b0c8e7ff5c58a649d07ea0d6f4f50f6","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-26T13:05:08Z","pushed_at":"2015-03-27T12:31:46Z","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":"533acbfa59c3b1b1423e9b02ce1e1157b7a0b276","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-26T13:05:08Z","pushed_at":"2015-03-27T12:31:46Z","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/6"},"html":{"href":"https://github.com/nearkun/qna/pull/6"},"issue":{"href":"https://api.github.com/repos/nearkun/qna/issues/6"},"comments":{"href":"https://api.github.com/repos/nearkun/qna/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/nearkun/qna/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/nearkun/qna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nearkun/qna/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/nearkun/qna/statuses/65d545f36b0c8e7ff5c58a649d07ea0d6f4f50f6"}}}}