{"action":"created","comment":{"url":"https://api.github.com/repos/hoanghaing/sample_app/pulls/comments/178505141","pull_request_review_id":108568278,"id":178505141,"diff_hunk":"@@ -1,4 +1,33 @@\n class UserController < ApplicationController\n+\n+  def show\n+    @user = User.find_by id: params[:id]\n+    return if @user\n+    flash[:danger] = t(\"no_user\")\n+    redirect_to root_url\n+  end\n+\n   def new\n+    @user = User.new\n+  end\n+\n+  def create\n+    @user = User.new(user_params)","path":"app/controllers/user_controller.rb","position":15,"original_position":15,"commit_id":"47469c16f959b7f297fc4f6e6a27f1b3c2c220ca","original_commit_id":"47469c16f959b7f297fc4f6e6a27f1b3c2c220ca","user":{"login":"baclv","id":27680484,"avatar_url":"https://avatars1.githubusercontent.com/u/27680484?v=4","gravatar_id":"","url":"https://api.github.com/users/baclv","html_url":"https://github.com/baclv","followers_url":"https://api.github.com/users/baclv/followers","following_url":"https://api.github.com/users/baclv/following{/other_user}","gists_url":"https://api.github.com/users/baclv/gists{/gist_id}","starred_url":"https://api.github.com/users/baclv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baclv/subscriptions","organizations_url":"https://api.github.com/users/baclv/orgs","repos_url":"https://api.github.com/users/baclv/repos","events_url":"https://api.github.com/users/baclv/events{/privacy}","received_events_url":"https://api.github.com/users/baclv/received_events","type":"User","site_admin":false},"body":"`()`","created_at":"2018-04-02T08:07:41Z","updated_at":"2018-04-02T08:10:57Z","html_url":"https://github.com/hoanghaing/sample_app/pull/6#discussion_r178505141","pull_request_url":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/hoanghaing/sample_app/pulls/comments/178505141"},"html":{"href":"https://github.com/hoanghaing/sample_app/pull/6#discussion_r178505141"},"pull_request":{"href":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6","id":178745662,"html_url":"https://github.com/hoanghaing/sample_app/pull/6","diff_url":"https://github.com/hoanghaing/sample_app/pull/6.diff","patch_url":"https://github.com/hoanghaing/sample_app/pull/6.patch","issue_url":"https://api.github.com/repos/hoanghaing/sample_app/issues/6","number":6,"state":"open","locked":false,"title":"Basic login Chuong 8","user":{"login":"hoanghaing","id":30549976,"avatar_url":"https://avatars0.githubusercontent.com/u/30549976?v=4","gravatar_id":"","url":"https://api.github.com/users/hoanghaing","html_url":"https://github.com/hoanghaing","followers_url":"https://api.github.com/users/hoanghaing/followers","following_url":"https://api.github.com/users/hoanghaing/following{/other_user}","gists_url":"https://api.github.com/users/hoanghaing/gists{/gist_id}","starred_url":"https://api.github.com/users/hoanghaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoanghaing/subscriptions","organizations_url":"https://api.github.com/users/hoanghaing/orgs","repos_url":"https://api.github.com/users/hoanghaing/repos","events_url":"https://api.github.com/users/hoanghaing/events{/privacy}","received_events_url":"https://api.github.com/users/hoanghaing/received_events","type":"User","site_admin":false},"body":"Co ganf tiep tuc voi chuong 8","created_at":"2018-04-01T20:16:27Z","updated_at":"2018-04-02T08:10:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b1b32b27a022b0af2f16079a18b404ddc20c918d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6/commits","review_comments_url":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6/comments","review_comment_url":"https://api.github.com/repos/hoanghaing/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hoanghaing/sample_app/issues/6/comments","statuses_url":"https://api.github.com/repos/hoanghaing/sample_app/statuses/47469c16f959b7f297fc4f6e6a27f1b3c2c220ca","head":{"label":"hoanghaing:basic-login","ref":"basic-login","sha":"47469c16f959b7f297fc4f6e6a27f1b3c2c220ca","user":{"login":"hoanghaing","id":30549976,"avatar_url":"https://avatars0.githubusercontent.com/u/30549976?v=4","gravatar_id":"","url":"https://api.github.com/users/hoanghaing","html_url":"https://github.com/hoanghaing","followers_url":"https://api.github.com/users/hoanghaing/followers","following_url":"https://api.github.com/users/hoanghaing/following{/other_user}","gists_url":"https://api.github.com/users/hoanghaing/gists{/gist_id}","starred_url":"https://api.github.com/users/hoanghaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoanghaing/subscriptions","organizations_url":"https://api.github.com/users/hoanghaing/orgs","repos_url":"https://api.github.com/users/hoanghaing/repos","events_url":"https://api.github.com/users/hoanghaing/events{/privacy}","received_events_url":"https://api.github.com/users/hoanghaing/received_events","type":"User","site_admin":false},"repo":{"id":127092635,"name":"sample_app","full_name":"hoanghaing/sample_app","owner":{"login":"hoanghaing","id":30549976,"avatar_url":"https://avatars0.githubusercontent.com/u/30549976?v=4","gravatar_id":"","url":"https://api.github.com/users/hoanghaing","html_url":"https://github.com/hoanghaing","followers_url":"https://api.github.com/users/hoanghaing/followers","following_url":"https://api.github.com/users/hoanghaing/following{/other_user}","gists_url":"https://api.github.com/users/hoanghaing/gists{/gist_id}","starred_url":"https://api.github.com/users/hoanghaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoanghaing/subscriptions","organizations_url":"https://api.github.com/users/hoanghaing/orgs","repos_url":"https://api.github.com/users/hoanghaing/repos","events_url":"https://api.github.com/users/hoanghaing/events{/privacy}","received_events_url":"https://api.github.com/users/hoanghaing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoanghaing/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/hoanghaing/sample_app","forks_url":"https://api.github.com/repos/hoanghaing/sample_app/forks","keys_url":"https://api.github.com/repos/hoanghaing/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoanghaing/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoanghaing/sample_app/teams","hooks_url":"https://api.github.com/repos/hoanghaing/sample_app/hooks","issue_events_url":"https://api.github.com/repos/hoanghaing/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/hoanghaing/sample_app/events","assignees_url":"https://api.github.com/repos/hoanghaing/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/hoanghaing/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/hoanghaing/sample_app/tags","blobs_url":"https://api.github.com/repos/hoanghaing/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoanghaing/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoanghaing/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoanghaing/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoanghaing/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/hoanghaing/sample_app/languages","stargazers_url":"https://api.github.com/repos/hoanghaing/sample_app/stargazers","contributors_url":"https://api.github.com/repos/hoanghaing/sample_app/contributors","subscribers_url":"https://api.github.com/repos/hoanghaing/sample_app/subscribers","subscription_url":"https://api.github.com/repos/hoanghaing/sample_app/subscription","commits_url":"https://api.github.com/repos/hoanghaing/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoanghaing/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoanghaing/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoanghaing/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoanghaing/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/hoanghaing/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoanghaing/sample_app/merges","archive_url":"https://api.github.com/repos/hoanghaing/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoanghaing/sample_app/downloads","issues_url":"https://api.github.com/repos/hoanghaing/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/hoanghaing/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/hoanghaing/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/hoanghaing/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoanghaing/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/hoanghaing/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/hoanghaing/sample_app/deployments","created_at":"2018-03-28T06:14:16Z","updated_at":"2018-04-01T02:28:22Z","pushed_at":"2018-04-01T20:41:27Z","git_url":"git://github.com/hoanghaing/sample_app.git","ssh_url":"git@github.com:hoanghaing/sample_app.git","clone_url":"https://github.com/hoanghaing/sample_app.git","svn_url":"https://github.com/hoanghaing/sample_app","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"hoanghaing:master","ref":"master","sha":"9f614481ba44018b34b97e53a04ae3d8e58220ea","user":{"login":"hoanghaing","id":30549976,"avatar_url":"https://avatars0.githubusercontent.com/u/30549976?v=4","gravatar_id":"","url":"https://api.github.com/users/hoanghaing","html_url":"https://github.com/hoanghaing","followers_url":"https://api.github.com/users/hoanghaing/followers","following_url":"https://api.github.com/users/hoanghaing/following{/other_user}","gists_url":"https://api.github.com/users/hoanghaing/gists{/gist_id}","starred_url":"https://api.github.com/users/hoanghaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoanghaing/subscriptions","organizations_url":"https://api.github.com/users/hoanghaing/orgs","repos_url":"https://api.github.com/users/hoanghaing/repos","events_url":"https://api.github.com/users/hoanghaing/events{/privacy}","received_events_url":"https://api.github.com/users/hoanghaing/received_events","type":"User","site_admin":false},"repo":{"id":127092635,"name":"sample_app","full_name":"hoanghaing/sample_app","owner":{"login":"hoanghaing","id":30549976,"avatar_url":"https://avatars0.githubusercontent.com/u/30549976?v=4","gravatar_id":"","url":"https://api.github.com/users/hoanghaing","html_url":"https://github.com/hoanghaing","followers_url":"https://api.github.com/users/hoanghaing/followers","following_url":"https://api.github.com/users/hoanghaing/following{/other_user}","gists_url":"https://api.github.com/users/hoanghaing/gists{/gist_id}","starred_url":"https://api.github.com/users/hoanghaing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoanghaing/subscriptions","organizations_url":"https://api.github.com/users/hoanghaing/orgs","repos_url":"https://api.github.com/users/hoanghaing/repos","events_url":"https://api.github.com/users/hoanghaing/events{/privacy}","received_events_url":"https://api.github.com/users/hoanghaing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoanghaing/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/hoanghaing/sample_app","forks_url":"https://api.github.com/repos/hoanghaing/sample_app/forks","keys_url":"https://api.github.com/repos/hoanghaing/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoanghaing/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoanghaing/sample_app/teams","hooks_url":"https://api.github.com/repos/hoanghaing/sample_app/hooks","issue_events_url":"https://api.github.com/repos/hoanghaing/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/hoanghaing/sample_app/events","assignees_url":"https://api.github.com/repos/hoanghaing/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/hoanghaing/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/hoanghaing/sample_app/tags","blobs_url":"https://api.github.com/repos/hoanghaing/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoanghaing/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoanghaing/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoanghaing/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoanghaing/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/hoanghaing/sample_app/languages","stargazers_url":"https://api.github.com/repos/hoanghaing/sample_app/stargazers","contributors_url":"https://api.github.com/repos/hoanghaing/sample_app/contributors","subscribers_url":"https://api.github.com/repos/hoanghaing/sample_app/subscribers","subscription_url":"https://api.github.com/repos/hoanghaing/sample_app/subscription","commits_url":"https://api.github.com/repos/hoanghaing/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoanghaing/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoanghaing/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoanghaing/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoanghaing/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/hoanghaing/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoanghaing/sample_app/merges","archive_url":"https://api.github.com/repos/hoanghaing/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoanghaing/sample_app/downloads","issues_url":"https://api.github.com/repos/hoanghaing/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/hoanghaing/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/hoanghaing/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/hoanghaing/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoanghaing/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/hoanghaing/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/hoanghaing/sample_app/deployments","created_at":"2018-03-28T06:14:16Z","updated_at":"2018-04-01T02:28:22Z","pushed_at":"2018-04-01T20:41:27Z","git_url":"git://github.com/hoanghaing/sample_app.git","ssh_url":"git@github.com:hoanghaing/sample_app.git","clone_url":"https://github.com/hoanghaing/sample_app.git","svn_url":"https://github.com/hoanghaing/sample_app","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6"},"html":{"href":"https://github.com/hoanghaing/sample_app/pull/6"},"issue":{"href":"https://api.github.com/repos/hoanghaing/sample_app/issues/6"},"comments":{"href":"https://api.github.com/repos/hoanghaing/sample_app/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/hoanghaing/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hoanghaing/sample_app/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/hoanghaing/sample_app/statuses/47469c16f959b7f297fc4f6e6a27f1b3c2c220ca"}},"author_association":"OWNER"}}
{"actor":{"display_login":"baclv"}}