{"action":"created","comment":{"url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/comments/176685138","pull_request_review_id":106432878,"id":176685138,"diff_hunk":"@@ -1,4 +1,28 @@\n class UsersController < ApplicationController\n+\n   def new\n+    @user = User.new\n   end\n+\n+  def show\n+    @user = User.find_by( id: params[:id])\n+  end\n+\n+  def create\n+    @user = User.new user_params\n+    if @user.save\n+      flash[:success] = t \"static_pages.home.welcome\"\n+      redirect_to @user\n+    else\n+      render :new","path":"app/controllers/users_controller.rb","position":17,"original_position":17,"commit_id":"7556d98d49e38da93b67e0e0839c994ac9fa3525","original_commit_id":"7556d98d49e38da93b67e0e0839c994ac9fa3525","user":{"login":"thangtx88","id":18256324,"avatar_url":"https://avatars1.githubusercontent.com/u/18256324?v=4","gravatar_id":"","url":"https://api.github.com/users/thangtx88","html_url":"https://github.com/thangtx88","followers_url":"https://api.github.com/users/thangtx88/followers","following_url":"https://api.github.com/users/thangtx88/following{/other_user}","gists_url":"https://api.github.com/users/thangtx88/gists{/gist_id}","starred_url":"https://api.github.com/users/thangtx88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thangtx88/subscriptions","organizations_url":"https://api.github.com/users/thangtx88/orgs","repos_url":"https://api.github.com/users/thangtx88/repos","events_url":"https://api.github.com/users/thangtx88/events{/privacy}","received_events_url":"https://api.github.com/users/thangtx88/received_events","type":"User","site_admin":false},"body":"Những cái đơn giản thế cần chó gì đợi tut, bám theo sách thì ăn thua gì","created_at":"2018-03-23T09:57:32Z","updated_at":"2018-03-23T09:57:33Z","html_url":"https://github.com/BadboYBG/sample_app/pull/3#discussion_r176685138","pull_request_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/comments/176685138"},"html":{"href":"https://github.com/BadboYBG/sample_app/pull/3#discussion_r176685138"},"pull_request":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3"}},"in_reply_to_id":176678823},"pull_request":{"url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3","id":176994580,"html_url":"https://github.com/BadboYBG/sample_app/pull/3","diff_url":"https://github.com/BadboYBG/sample_app/pull/3.diff","patch_url":"https://github.com/BadboYBG/sample_app/pull/3.patch","issue_url":"https://api.github.com/repos/BadboYBG/sample_app/issues/3","number":3,"state":"open","locked":false,"title":"Finish user signup","user":{"login":"BadboYBG","id":29939607,"avatar_url":"https://avatars0.githubusercontent.com/u/29939607?v=4","gravatar_id":"","url":"https://api.github.com/users/BadboYBG","html_url":"https://github.com/BadboYBG","followers_url":"https://api.github.com/users/BadboYBG/followers","following_url":"https://api.github.com/users/BadboYBG/following{/other_user}","gists_url":"https://api.github.com/users/BadboYBG/gists{/gist_id}","starred_url":"https://api.github.com/users/BadboYBG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BadboYBG/subscriptions","organizations_url":"https://api.github.com/users/BadboYBG/orgs","repos_url":"https://api.github.com/users/BadboYBG/repos","events_url":"https://api.github.com/users/BadboYBG/events{/privacy}","received_events_url":"https://api.github.com/users/BadboYBG/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-23T07:46:10Z","updated_at":"2018-03-23T09:57:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae02bff8660ca8c11c7bc87c13a43df91d1b2257","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3/commits","review_comments_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3/comments","review_comment_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BadboYBG/sample_app/issues/3/comments","statuses_url":"https://api.github.com/repos/BadboYBG/sample_app/statuses/7556d98d49e38da93b67e0e0839c994ac9fa3525","head":{"label":"BadboYBG:sign-up","ref":"sign-up","sha":"7556d98d49e38da93b67e0e0839c994ac9fa3525","user":{"login":"BadboYBG","id":29939607,"avatar_url":"https://avatars0.githubusercontent.com/u/29939607?v=4","gravatar_id":"","url":"https://api.github.com/users/BadboYBG","html_url":"https://github.com/BadboYBG","followers_url":"https://api.github.com/users/BadboYBG/followers","following_url":"https://api.github.com/users/BadboYBG/following{/other_user}","gists_url":"https://api.github.com/users/BadboYBG/gists{/gist_id}","starred_url":"https://api.github.com/users/BadboYBG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BadboYBG/subscriptions","organizations_url":"https://api.github.com/users/BadboYBG/orgs","repos_url":"https://api.github.com/users/BadboYBG/repos","events_url":"https://api.github.com/users/BadboYBG/events{/privacy}","received_events_url":"https://api.github.com/users/BadboYBG/received_events","type":"User","site_admin":false},"repo":{"id":125977390,"name":"sample_app","full_name":"BadboYBG/sample_app","owner":{"login":"BadboYBG","id":29939607,"avatar_url":"https://avatars0.githubusercontent.com/u/29939607?v=4","gravatar_id":"","url":"https://api.github.com/users/BadboYBG","html_url":"https://github.com/BadboYBG","followers_url":"https://api.github.com/users/BadboYBG/followers","following_url":"https://api.github.com/users/BadboYBG/following{/other_user}","gists_url":"https://api.github.com/users/BadboYBG/gists{/gist_id}","starred_url":"https://api.github.com/users/BadboYBG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BadboYBG/subscriptions","organizations_url":"https://api.github.com/users/BadboYBG/orgs","repos_url":"https://api.github.com/users/BadboYBG/repos","events_url":"https://api.github.com/users/BadboYBG/events{/privacy}","received_events_url":"https://api.github.com/users/BadboYBG/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BadboYBG/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/BadboYBG/sample_app","forks_url":"https://api.github.com/repos/BadboYBG/sample_app/forks","keys_url":"https://api.github.com/repos/BadboYBG/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BadboYBG/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BadboYBG/sample_app/teams","hooks_url":"https://api.github.com/repos/BadboYBG/sample_app/hooks","issue_events_url":"https://api.github.com/repos/BadboYBG/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/BadboYBG/sample_app/events","assignees_url":"https://api.github.com/repos/BadboYBG/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/BadboYBG/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/BadboYBG/sample_app/tags","blobs_url":"https://api.github.com/repos/BadboYBG/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BadboYBG/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BadboYBG/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/BadboYBG/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BadboYBG/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/BadboYBG/sample_app/languages","stargazers_url":"https://api.github.com/repos/BadboYBG/sample_app/stargazers","contributors_url":"https://api.github.com/repos/BadboYBG/sample_app/contributors","subscribers_url":"https://api.github.com/repos/BadboYBG/sample_app/subscribers","subscription_url":"https://api.github.com/repos/BadboYBG/sample_app/subscription","commits_url":"https://api.github.com/repos/BadboYBG/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/BadboYBG/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/BadboYBG/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/BadboYBG/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/BadboYBG/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/BadboYBG/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BadboYBG/sample_app/merges","archive_url":"https://api.github.com/repos/BadboYBG/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BadboYBG/sample_app/downloads","issues_url":"https://api.github.com/repos/BadboYBG/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/BadboYBG/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/BadboYBG/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BadboYBG/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/BadboYBG/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/BadboYBG/sample_app/deployments","created_at":"2018-03-20T07:25:54Z","updated_at":"2018-03-23T06:54:12Z","pushed_at":"2018-03-23T08:31:41Z","git_url":"git://github.com/BadboYBG/sample_app.git","ssh_url":"git@github.com:BadboYBG/sample_app.git","clone_url":"https://github.com/BadboYBG/sample_app.git","svn_url":"https://github.com/BadboYBG/sample_app","homepage":null,"size":56,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BadboYBG:master","ref":"master","sha":"de3d5d696abba921e3043acd7d40e93f02f47f73","user":{"login":"BadboYBG","id":29939607,"avatar_url":"https://avatars0.githubusercontent.com/u/29939607?v=4","gravatar_id":"","url":"https://api.github.com/users/BadboYBG","html_url":"https://github.com/BadboYBG","followers_url":"https://api.github.com/users/BadboYBG/followers","following_url":"https://api.github.com/users/BadboYBG/following{/other_user}","gists_url":"https://api.github.com/users/BadboYBG/gists{/gist_id}","starred_url":"https://api.github.com/users/BadboYBG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BadboYBG/subscriptions","organizations_url":"https://api.github.com/users/BadboYBG/orgs","repos_url":"https://api.github.com/users/BadboYBG/repos","events_url":"https://api.github.com/users/BadboYBG/events{/privacy}","received_events_url":"https://api.github.com/users/BadboYBG/received_events","type":"User","site_admin":false},"repo":{"id":125977390,"name":"sample_app","full_name":"BadboYBG/sample_app","owner":{"login":"BadboYBG","id":29939607,"avatar_url":"https://avatars0.githubusercontent.com/u/29939607?v=4","gravatar_id":"","url":"https://api.github.com/users/BadboYBG","html_url":"https://github.com/BadboYBG","followers_url":"https://api.github.com/users/BadboYBG/followers","following_url":"https://api.github.com/users/BadboYBG/following{/other_user}","gists_url":"https://api.github.com/users/BadboYBG/gists{/gist_id}","starred_url":"https://api.github.com/users/BadboYBG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BadboYBG/subscriptions","organizations_url":"https://api.github.com/users/BadboYBG/orgs","repos_url":"https://api.github.com/users/BadboYBG/repos","events_url":"https://api.github.com/users/BadboYBG/events{/privacy}","received_events_url":"https://api.github.com/users/BadboYBG/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BadboYBG/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/BadboYBG/sample_app","forks_url":"https://api.github.com/repos/BadboYBG/sample_app/forks","keys_url":"https://api.github.com/repos/BadboYBG/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BadboYBG/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BadboYBG/sample_app/teams","hooks_url":"https://api.github.com/repos/BadboYBG/sample_app/hooks","issue_events_url":"https://api.github.com/repos/BadboYBG/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/BadboYBG/sample_app/events","assignees_url":"https://api.github.com/repos/BadboYBG/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/BadboYBG/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/BadboYBG/sample_app/tags","blobs_url":"https://api.github.com/repos/BadboYBG/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BadboYBG/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BadboYBG/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/BadboYBG/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BadboYBG/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/BadboYBG/sample_app/languages","stargazers_url":"https://api.github.com/repos/BadboYBG/sample_app/stargazers","contributors_url":"https://api.github.com/repos/BadboYBG/sample_app/contributors","subscribers_url":"https://api.github.com/repos/BadboYBG/sample_app/subscribers","subscription_url":"https://api.github.com/repos/BadboYBG/sample_app/subscription","commits_url":"https://api.github.com/repos/BadboYBG/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/BadboYBG/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/BadboYBG/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/BadboYBG/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/BadboYBG/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/BadboYBG/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BadboYBG/sample_app/merges","archive_url":"https://api.github.com/repos/BadboYBG/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BadboYBG/sample_app/downloads","issues_url":"https://api.github.com/repos/BadboYBG/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/BadboYBG/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/BadboYBG/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BadboYBG/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/BadboYBG/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/BadboYBG/sample_app/deployments","created_at":"2018-03-20T07:25:54Z","updated_at":"2018-03-23T06:54:12Z","pushed_at":"2018-03-23T08:31:41Z","git_url":"git://github.com/BadboYBG/sample_app.git","ssh_url":"git@github.com:BadboYBG/sample_app.git","clone_url":"https://github.com/BadboYBG/sample_app.git","svn_url":"https://github.com/BadboYBG/sample_app","homepage":null,"size":56,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3"},"html":{"href":"https://github.com/BadboYBG/sample_app/pull/3"},"issue":{"href":"https://api.github.com/repos/BadboYBG/sample_app/issues/3"},"comments":{"href":"https://api.github.com/repos/BadboYBG/sample_app/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/BadboYBG/sample_app/statuses/7556d98d49e38da93b67e0e0839c994ac9fa3525"}},"author_association":"OWNER"}}
{"actor":{"display_login":"thangtx88"}}