{"action":"created","comment":{"url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/comments/31878411","id":31878411,"diff_hunk":"@@ -0,0 +1,40 @@\n+class AnswersController < ApplicationController\n+\n+\n+\n+\tdef index \n+\t\t@question=Question.find(params[:question_id])\n+\t\t@answers = @question.answers\n+\tend\n+\n+\tdef create \n+\t  @question=Question.find(params[:question_id])","path":"app/controllers/answers_controller.rb","position":11,"original_position":11,"commit_id":"bc9553c6314b3e4c8c43189393f0a61da146bd83","original_commit_id":"bc9553c6314b3e4c8c43189393f0a61da146bd83","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":"Прими за правило слева и справа от знака присваивания (=) ставить 1 пробел. А то твой код сразу выдет неопытного разработчика, который ничего не знает о стиле кода. И почитай еще стайл гайды по ruby и rails.","created_at":"2015-06-07T16:47:56Z","updated_at":"2015-06-07T16:47:56Z","html_url":"https://github.com/xnagpa/thinknetica_training_project/pull/2#discussion_r31878411","pull_request_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/comments/31878411"},"html":{"href":"https://github.com/xnagpa/thinknetica_training_project/pull/2#discussion_r31878411"},"pull_request":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/2","id":37103646,"html_url":"https://github.com/xnagpa/thinknetica_training_project/pull/2","diff_url":"https://github.com/xnagpa/thinknetica_training_project/pull/2.diff","patch_url":"https://github.com/xnagpa/thinknetica_training_project/pull/2.patch","issue_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/2","number":2,"state":"open","locked":false,"title":"Lesson 4","user":{"login":"xnagpa","id":4035895,"avatar_url":"https://avatars.githubusercontent.com/u/4035895?v=3","gravatar_id":"","url":"https://api.github.com/users/xnagpa","html_url":"https://github.com/xnagpa","followers_url":"https://api.github.com/users/xnagpa/followers","following_url":"https://api.github.com/users/xnagpa/following{/other_user}","gists_url":"https://api.github.com/users/xnagpa/gists{/gist_id}","starred_url":"https://api.github.com/users/xnagpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnagpa/subscriptions","organizations_url":"https://api.github.com/users/xnagpa/orgs","repos_url":"https://api.github.com/users/xnagpa/repos","events_url":"https://api.github.com/users/xnagpa/events{/privacy}","received_events_url":"https://api.github.com/users/xnagpa/received_events","type":"User","site_admin":false},"body":"Allmighty pull request by me. ","created_at":"2015-06-07T08:57:54Z","updated_at":"2015-06-07T16:47:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57ef02fd21e145179972309d83274b4515cd35ff","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/2/commits","review_comments_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/2/comments","review_comment_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/2/comments","statuses_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/statuses/bc9553c6314b3e4c8c43189393f0a61da146bd83","head":{"label":"xnagpa:lesson_4","ref":"lesson_4","sha":"bc9553c6314b3e4c8c43189393f0a61da146bd83","user":{"login":"xnagpa","id":4035895,"avatar_url":"https://avatars.githubusercontent.com/u/4035895?v=3","gravatar_id":"","url":"https://api.github.com/users/xnagpa","html_url":"https://github.com/xnagpa","followers_url":"https://api.github.com/users/xnagpa/followers","following_url":"https://api.github.com/users/xnagpa/following{/other_user}","gists_url":"https://api.github.com/users/xnagpa/gists{/gist_id}","starred_url":"https://api.github.com/users/xnagpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnagpa/subscriptions","organizations_url":"https://api.github.com/users/xnagpa/orgs","repos_url":"https://api.github.com/users/xnagpa/repos","events_url":"https://api.github.com/users/xnagpa/events{/privacy}","received_events_url":"https://api.github.com/users/xnagpa/received_events","type":"User","site_admin":false},"repo":{"id":36605785,"name":"thinknetica_training_project","full_name":"xnagpa/thinknetica_training_project","owner":{"login":"xnagpa","id":4035895,"avatar_url":"https://avatars.githubusercontent.com/u/4035895?v=3","gravatar_id":"","url":"https://api.github.com/users/xnagpa","html_url":"https://github.com/xnagpa","followers_url":"https://api.github.com/users/xnagpa/followers","following_url":"https://api.github.com/users/xnagpa/following{/other_user}","gists_url":"https://api.github.com/users/xnagpa/gists{/gist_id}","starred_url":"https://api.github.com/users/xnagpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnagpa/subscriptions","organizations_url":"https://api.github.com/users/xnagpa/orgs","repos_url":"https://api.github.com/users/xnagpa/repos","events_url":"https://api.github.com/users/xnagpa/events{/privacy}","received_events_url":"https://api.github.com/users/xnagpa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xnagpa/thinknetica_training_project","description":"Stackoverflow clone. TDD/BDD,  RoR, Haml, Saas/Scss, Pg. ","fork":false,"url":"https://api.github.com/repos/xnagpa/thinknetica_training_project","forks_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/forks","keys_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/teams","hooks_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/hooks","issue_events_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/events{/number}","events_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/events","assignees_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/assignees{/user}","branches_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/branches{/branch}","tags_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/tags","blobs_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/statuses/{sha}","languages_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/languages","stargazers_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/stargazers","contributors_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/contributors","subscribers_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/subscribers","subscription_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/subscription","commits_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/contents/{+path}","compare_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/merges","archive_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/downloads","issues_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues{/number}","pulls_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls{/number}","milestones_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/milestones{/number}","notifications_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/labels{/name}","releases_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/releases{/id}","created_at":"2015-05-31T14:10:09Z","updated_at":"2015-05-31T20:05:27Z","pushed_at":"2015-06-07T10:47:13Z","git_url":"git://github.com/xnagpa/thinknetica_training_project.git","ssh_url":"git@github.com:xnagpa/thinknetica_training_project.git","clone_url":"https://github.com/xnagpa/thinknetica_training_project.git","svn_url":"https://github.com/xnagpa/thinknetica_training_project","homepage":null,"size":232,"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":"xnagpa:master","ref":"master","sha":"0e9e93ea18acf9309feb20db5845c1ed00130e98","user":{"login":"xnagpa","id":4035895,"avatar_url":"https://avatars.githubusercontent.com/u/4035895?v=3","gravatar_id":"","url":"https://api.github.com/users/xnagpa","html_url":"https://github.com/xnagpa","followers_url":"https://api.github.com/users/xnagpa/followers","following_url":"https://api.github.com/users/xnagpa/following{/other_user}","gists_url":"https://api.github.com/users/xnagpa/gists{/gist_id}","starred_url":"https://api.github.com/users/xnagpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnagpa/subscriptions","organizations_url":"https://api.github.com/users/xnagpa/orgs","repos_url":"https://api.github.com/users/xnagpa/repos","events_url":"https://api.github.com/users/xnagpa/events{/privacy}","received_events_url":"https://api.github.com/users/xnagpa/received_events","type":"User","site_admin":false},"repo":{"id":36605785,"name":"thinknetica_training_project","full_name":"xnagpa/thinknetica_training_project","owner":{"login":"xnagpa","id":4035895,"avatar_url":"https://avatars.githubusercontent.com/u/4035895?v=3","gravatar_id":"","url":"https://api.github.com/users/xnagpa","html_url":"https://github.com/xnagpa","followers_url":"https://api.github.com/users/xnagpa/followers","following_url":"https://api.github.com/users/xnagpa/following{/other_user}","gists_url":"https://api.github.com/users/xnagpa/gists{/gist_id}","starred_url":"https://api.github.com/users/xnagpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xnagpa/subscriptions","organizations_url":"https://api.github.com/users/xnagpa/orgs","repos_url":"https://api.github.com/users/xnagpa/repos","events_url":"https://api.github.com/users/xnagpa/events{/privacy}","received_events_url":"https://api.github.com/users/xnagpa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xnagpa/thinknetica_training_project","description":"Stackoverflow clone. TDD/BDD,  RoR, Haml, Saas/Scss, Pg. ","fork":false,"url":"https://api.github.com/repos/xnagpa/thinknetica_training_project","forks_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/forks","keys_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/teams","hooks_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/hooks","issue_events_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/events{/number}","events_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/events","assignees_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/assignees{/user}","branches_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/branches{/branch}","tags_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/tags","blobs_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/refs{/sha}","trees_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/statuses/{sha}","languages_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/languages","stargazers_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/stargazers","contributors_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/contributors","subscribers_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/subscribers","subscription_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/subscription","commits_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/commits{/sha}","git_commits_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/git/commits{/sha}","comments_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/comments{/number}","issue_comment_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/comments{/number}","contents_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/contents/{+path}","compare_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/merges","archive_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/downloads","issues_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues{/number}","pulls_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls{/number}","milestones_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/milestones{/number}","notifications_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/labels{/name}","releases_url":"https://api.github.com/repos/xnagpa/thinknetica_training_project/releases{/id}","created_at":"2015-05-31T14:10:09Z","updated_at":"2015-05-31T20:05:27Z","pushed_at":"2015-06-07T10:47:13Z","git_url":"git://github.com/xnagpa/thinknetica_training_project.git","ssh_url":"git@github.com:xnagpa/thinknetica_training_project.git","clone_url":"https://github.com/xnagpa/thinknetica_training_project.git","svn_url":"https://github.com/xnagpa/thinknetica_training_project","homepage":null,"size":232,"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/xnagpa/thinknetica_training_project/pulls/2"},"html":{"href":"https://github.com/xnagpa/thinknetica_training_project/pull/2"},"issue":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/2"},"comments":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/xnagpa/thinknetica_training_project/statuses/bc9553c6314b3e4c8c43189393f0a61da146bd83"}}}}