{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_5/pulls/comments/70210457","id":70210457,"diff_hunk":"@@ -0,0 +1,27 @@\n+class CommentsController < ApplicationController\n+  before_action :logged_in_user\n+\n+  def new\n+  end\n+\n+  def show\n+    @comment = Comment.find_by_id params[:id] \n+  end\n+\n+  def create\n+    @comment = current_user.comments.build comment_params\n+    @comment.product_id = params[:product_id]","path":"app/controllers/comments_controller.rb","position":13,"original_position":13,"commit_id":"2f9a2df902bf0f7079bd1bda840cfd543d9d501d","original_commit_id":"2f9a2df902bf0f7079bd1bda840cfd543d9d501d","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"nhớ k thấy cái product với cái id này thì sao em?","created_at":"2016-07-11T07:13:28Z","updated_at":"2016-07-11T07:13:28Z","html_url":"https://github.com/framgia/fdf_5/pull/23#discussion_r70210457","pull_request_url":"https://api.github.com/repos/framgia/fdf_5/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_5/pulls/comments/70210457"},"html":{"href":"https://github.com/framgia/fdf_5/pull/23#discussion_r70210457"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_5/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_5/pulls/23","id":76907896,"html_url":"https://github.com/framgia/fdf_5/pull/23","diff_url":"https://github.com/framgia/fdf_5/pull/23.diff","patch_url":"https://github.com/framgia/fdf_5/pull/23.patch","issue_url":"https://api.github.com/repos/framgia/fdf_5/issues/23","number":23,"state":"open","locked":false,"title":"comment-for-product","user":{"login":"sonvc94","id":11006781,"avatar_url":"https://avatars.githubusercontent.com/u/11006781?v=3","gravatar_id":"","url":"https://api.github.com/users/sonvc94","html_url":"https://github.com/sonvc94","followers_url":"https://api.github.com/users/sonvc94/followers","following_url":"https://api.github.com/users/sonvc94/following{/other_user}","gists_url":"https://api.github.com/users/sonvc94/gists{/gist_id}","starred_url":"https://api.github.com/users/sonvc94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonvc94/subscriptions","organizations_url":"https://api.github.com/users/sonvc94/orgs","repos_url":"https://api.github.com/users/sonvc94/repos","events_url":"https://api.github.com/users/sonvc94/events{/privacy}","received_events_url":"https://api.github.com/users/sonvc94/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-11T07:04:58Z","updated_at":"2016-07-11T07:13:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d8f3d4e548f41da31ed008a9c991db993e23684","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_5/pulls/23/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_5/pulls/23/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_5/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_5/issues/23/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_5/statuses/2f9a2df902bf0f7079bd1bda840cfd543d9d501d","head":{"label":"sonvc94:comments-product","ref":"comments-product","sha":"2f9a2df902bf0f7079bd1bda840cfd543d9d501d","user":{"login":"sonvc94","id":11006781,"avatar_url":"https://avatars.githubusercontent.com/u/11006781?v=3","gravatar_id":"","url":"https://api.github.com/users/sonvc94","html_url":"https://github.com/sonvc94","followers_url":"https://api.github.com/users/sonvc94/followers","following_url":"https://api.github.com/users/sonvc94/following{/other_user}","gists_url":"https://api.github.com/users/sonvc94/gists{/gist_id}","starred_url":"https://api.github.com/users/sonvc94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonvc94/subscriptions","organizations_url":"https://api.github.com/users/sonvc94/orgs","repos_url":"https://api.github.com/users/sonvc94/repos","events_url":"https://api.github.com/users/sonvc94/events{/privacy}","received_events_url":"https://api.github.com/users/sonvc94/received_events","type":"User","site_admin":false},"repo":{"id":62536961,"name":"fdf_5","full_name":"sonvc94/fdf_5","owner":{"login":"sonvc94","id":11006781,"avatar_url":"https://avatars.githubusercontent.com/u/11006781?v=3","gravatar_id":"","url":"https://api.github.com/users/sonvc94","html_url":"https://github.com/sonvc94","followers_url":"https://api.github.com/users/sonvc94/followers","following_url":"https://api.github.com/users/sonvc94/following{/other_user}","gists_url":"https://api.github.com/users/sonvc94/gists{/gist_id}","starred_url":"https://api.github.com/users/sonvc94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonvc94/subscriptions","organizations_url":"https://api.github.com/users/sonvc94/orgs","repos_url":"https://api.github.com/users/sonvc94/repos","events_url":"https://api.github.com/users/sonvc94/events{/privacy}","received_events_url":"https://api.github.com/users/sonvc94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sonvc94/fdf_5","description":"Foods & Drinks (training)","fork":true,"url":"https://api.github.com/repos/sonvc94/fdf_5","forks_url":"https://api.github.com/repos/sonvc94/fdf_5/forks","keys_url":"https://api.github.com/repos/sonvc94/fdf_5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonvc94/fdf_5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonvc94/fdf_5/teams","hooks_url":"https://api.github.com/repos/sonvc94/fdf_5/hooks","issue_events_url":"https://api.github.com/repos/sonvc94/fdf_5/issues/events{/number}","events_url":"https://api.github.com/repos/sonvc94/fdf_5/events","assignees_url":"https://api.github.com/repos/sonvc94/fdf_5/assignees{/user}","branches_url":"https://api.github.com/repos/sonvc94/fdf_5/branches{/branch}","tags_url":"https://api.github.com/repos/sonvc94/fdf_5/tags","blobs_url":"https://api.github.com/repos/sonvc94/fdf_5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonvc94/fdf_5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonvc94/fdf_5/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonvc94/fdf_5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonvc94/fdf_5/statuses/{sha}","languages_url":"https://api.github.com/repos/sonvc94/fdf_5/languages","stargazers_url":"https://api.github.com/repos/sonvc94/fdf_5/stargazers","contributors_url":"https://api.github.com/repos/sonvc94/fdf_5/contributors","subscribers_url":"https://api.github.com/repos/sonvc94/fdf_5/subscribers","subscription_url":"https://api.github.com/repos/sonvc94/fdf_5/subscription","commits_url":"https://api.github.com/repos/sonvc94/fdf_5/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonvc94/fdf_5/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonvc94/fdf_5/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonvc94/fdf_5/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonvc94/fdf_5/contents/{+path}","compare_url":"https://api.github.com/repos/sonvc94/fdf_5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonvc94/fdf_5/merges","archive_url":"https://api.github.com/repos/sonvc94/fdf_5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonvc94/fdf_5/downloads","issues_url":"https://api.github.com/repos/sonvc94/fdf_5/issues{/number}","pulls_url":"https://api.github.com/repos/sonvc94/fdf_5/pulls{/number}","milestones_url":"https://api.github.com/repos/sonvc94/fdf_5/milestones{/number}","notifications_url":"https://api.github.com/repos/sonvc94/fdf_5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonvc94/fdf_5/labels{/name}","releases_url":"https://api.github.com/repos/sonvc94/fdf_5/releases{/id}","deployments_url":"https://api.github.com/repos/sonvc94/fdf_5/deployments","created_at":"2016-07-04T06:27:06Z","updated_at":"2016-06-29T04:46:27Z","pushed_at":"2016-07-11T07:08:25Z","git_url":"git://github.com/sonvc94/fdf_5.git","ssh_url":"git@github.com:sonvc94/fdf_5.git","clone_url":"https://github.com/sonvc94/fdf_5.git","svn_url":"https://github.com/sonvc94/fdf_5","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"8fc0f2cbf1f118ca502d61c498f78a46e97fe530","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":62196250,"name":"fdf_5","full_name":"framgia/fdf_5","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fdf_5","description":"Foods & Drinks (training)","fork":false,"url":"https://api.github.com/repos/framgia/fdf_5","forks_url":"https://api.github.com/repos/framgia/fdf_5/forks","keys_url":"https://api.github.com/repos/framgia/fdf_5/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_5/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_5/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_5/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_5/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_5/events","assignees_url":"https://api.github.com/repos/framgia/fdf_5/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_5/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_5/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_5/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_5/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_5/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_5/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_5/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_5/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_5/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_5/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_5/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_5/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_5/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_5/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_5/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_5/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_5/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_5/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_5/merges","archive_url":"https://api.github.com/repos/framgia/fdf_5/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_5/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_5/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_5/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_5/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_5/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_5/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_5/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_5/deployments","created_at":"2016-06-29T04:46:27Z","updated_at":"2016-06-29T04:46:27Z","pushed_at":"2016-07-11T07:12:02Z","git_url":"git://github.com/framgia/fdf_5.git","ssh_url":"git@github.com:framgia/fdf_5.git","clone_url":"https://github.com/framgia/fdf_5.git","svn_url":"https://github.com/framgia/fdf_5","homepage":null,"size":72,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_5/pulls/23"},"html":{"href":"https://github.com/framgia/fdf_5/pull/23"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_5/issues/23"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_5/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_5/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_5/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_5/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_5/statuses/2f9a2df902bf0f7079bd1bda840cfd543d9d501d"}}}}
{"actor":{"display_login":"hellovietnam93"}}