{"action":"created","comment":{"url":"https://api.github.com/repos/sangnuce/sample_app/pulls/comments/83447811","pull_request_review_id":4293022,"id":83447811,"diff_hunk":"@@ -1,4 +1,29 @@\n class UsersController < ApplicationController\n   def new\n+    @user = User.new\n+  end\n+\n+  def show\n+    @user = User.find_by id: params[:id]\n+    if @user.nil?\n+      flash[:danger] = \"User not found\"\n+      redirect_to root_path\n+    end\n+  end\n+\n+  def create\n+    @user = User.new user_params\n+    if @user.save\n+      flash[:success] = \"Welcome to the Sample App!\"\n+      redirect_to @user\n+    else\n+      render \"new\"","path":"app/controllers/users_controller.rb","position":20,"original_position":20,"commit_id":"eb002a39b387a9e4fc66ac8e83394c13703fc97d","original_commit_id":"eb002a39b387a9e4fc66ac8e83394c13703fc97d","user":{"login":"daonhat","id":13216785,"avatar_url":"https://avatars.githubusercontent.com/u/13216785?v=3","gravatar_id":"","url":"https://api.github.com/users/daonhat","html_url":"https://github.com/daonhat","followers_url":"https://api.github.com/users/daonhat/followers","following_url":"https://api.github.com/users/daonhat/following{/other_user}","gists_url":"https://api.github.com/users/daonhat/gists{/gist_id}","starred_url":"https://api.github.com/users/daonhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daonhat/subscriptions","organizations_url":"https://api.github.com/users/daonhat/orgs","repos_url":"https://api.github.com/users/daonhat/repos","events_url":"https://api.github.com/users/daonhat/events{/privacy}","received_events_url":"https://api.github.com/users/daonhat/received_events","type":"User","site_admin":false},"body":":new","created_at":"2016-10-14T15:40:13Z","updated_at":"2016-10-14T15:42:24Z","html_url":"https://github.com/sangnuce/sample_app/pull/10#discussion_r83447811","pull_request_url":"https://api.github.com/repos/sangnuce/sample_app/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/sangnuce/sample_app/pulls/comments/83447811"},"html":{"href":"https://github.com/sangnuce/sample_app/pull/10#discussion_r83447811"},"pull_request":{"href":"https://api.github.com/repos/sangnuce/sample_app/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/sangnuce/sample_app/pulls/10","id":89355784,"html_url":"https://github.com/sangnuce/sample_app/pull/10","diff_url":"https://github.com/sangnuce/sample_app/pull/10.diff","patch_url":"https://github.com/sangnuce/sample_app/pull/10.patch","issue_url":"https://api.github.com/repos/sangnuce/sample_app/issues/10","number":10,"state":"open","locked":false,"title":"Finish user signup","user":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars.githubusercontent.com/u/12852873?v=3","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-14T09:54:57Z","updated_at":"2016-10-14T15:42:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d3db526cbbd79584fdaf7cd985850ee38fcb8fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sangnuce/sample_app/pulls/10/commits","review_comments_url":"https://api.github.com/repos/sangnuce/sample_app/pulls/10/comments","review_comment_url":"https://api.github.com/repos/sangnuce/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sangnuce/sample_app/issues/10/comments","statuses_url":"https://api.github.com/repos/sangnuce/sample_app/statuses/eb002a39b387a9e4fc66ac8e83394c13703fc97d","head":{"label":"sangnuce:sign-up","ref":"sign-up","sha":"eb002a39b387a9e4fc66ac8e83394c13703fc97d","user":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars.githubusercontent.com/u/12852873?v=3","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"repo":{"id":70571003,"name":"sample_app","full_name":"sangnuce/sample_app","owner":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars.githubusercontent.com/u/12852873?v=3","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sangnuce/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/sangnuce/sample_app","forks_url":"https://api.github.com/repos/sangnuce/sample_app/forks","keys_url":"https://api.github.com/repos/sangnuce/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sangnuce/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sangnuce/sample_app/teams","hooks_url":"https://api.github.com/repos/sangnuce/sample_app/hooks","issue_events_url":"https://api.github.com/repos/sangnuce/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/sangnuce/sample_app/events","assignees_url":"https://api.github.com/repos/sangnuce/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/sangnuce/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/sangnuce/sample_app/tags","blobs_url":"https://api.github.com/repos/sangnuce/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sangnuce/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sangnuce/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/sangnuce/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sangnuce/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/sangnuce/sample_app/languages","stargazers_url":"https://api.github.com/repos/sangnuce/sample_app/stargazers","contributors_url":"https://api.github.com/repos/sangnuce/sample_app/contributors","subscribers_url":"https://api.github.com/repos/sangnuce/sample_app/subscribers","subscription_url":"https://api.github.com/repos/sangnuce/sample_app/subscription","commits_url":"https://api.github.com/repos/sangnuce/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/sangnuce/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/sangnuce/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/sangnuce/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/sangnuce/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/sangnuce/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sangnuce/sample_app/merges","archive_url":"https://api.github.com/repos/sangnuce/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sangnuce/sample_app/downloads","issues_url":"https://api.github.com/repos/sangnuce/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/sangnuce/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/sangnuce/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/sangnuce/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sangnuce/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/sangnuce/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/sangnuce/sample_app/deployments","created_at":"2016-10-11T08:10:25Z","updated_at":"2016-10-11T08:22:52Z","pushed_at":"2016-10-14T15:26:32Z","git_url":"git://github.com/sangnuce/sample_app.git","ssh_url":"git@github.com:sangnuce/sample_app.git","clone_url":"https://github.com/sangnuce/sample_app.git","svn_url":"https://github.com/sangnuce/sample_app","homepage":null,"size":194,"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":"sangnuce:master","ref":"master","sha":"66138eec37fe96e06386f84818f144ea5f17981c","user":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars.githubusercontent.com/u/12852873?v=3","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"repo":{"id":70571003,"name":"sample_app","full_name":"sangnuce/sample_app","owner":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars.githubusercontent.com/u/12852873?v=3","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sangnuce/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/sangnuce/sample_app","forks_url":"https://api.github.com/repos/sangnuce/sample_app/forks","keys_url":"https://api.github.com/repos/sangnuce/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sangnuce/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sangnuce/sample_app/teams","hooks_url":"https://api.github.com/repos/sangnuce/sample_app/hooks","issue_events_url":"https://api.github.com/repos/sangnuce/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/sangnuce/sample_app/events","assignees_url":"https://api.github.com/repos/sangnuce/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/sangnuce/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/sangnuce/sample_app/tags","blobs_url":"https://api.github.com/repos/sangnuce/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sangnuce/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sangnuce/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/sangnuce/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sangnuce/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/sangnuce/sample_app/languages","stargazers_url":"https://api.github.com/repos/sangnuce/sample_app/stargazers","contributors_url":"https://api.github.com/repos/sangnuce/sample_app/contributors","subscribers_url":"https://api.github.com/repos/sangnuce/sample_app/subscribers","subscription_url":"https://api.github.com/repos/sangnuce/sample_app/subscription","commits_url":"https://api.github.com/repos/sangnuce/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/sangnuce/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/sangnuce/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/sangnuce/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/sangnuce/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/sangnuce/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sangnuce/sample_app/merges","archive_url":"https://api.github.com/repos/sangnuce/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sangnuce/sample_app/downloads","issues_url":"https://api.github.com/repos/sangnuce/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/sangnuce/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/sangnuce/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/sangnuce/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sangnuce/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/sangnuce/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/sangnuce/sample_app/deployments","created_at":"2016-10-11T08:10:25Z","updated_at":"2016-10-11T08:22:52Z","pushed_at":"2016-10-14T15:26:32Z","git_url":"git://github.com/sangnuce/sample_app.git","ssh_url":"git@github.com:sangnuce/sample_app.git","clone_url":"https://github.com/sangnuce/sample_app.git","svn_url":"https://github.com/sangnuce/sample_app","homepage":null,"size":194,"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/sangnuce/sample_app/pulls/10"},"html":{"href":"https://github.com/sangnuce/sample_app/pull/10"},"issue":{"href":"https://api.github.com/repos/sangnuce/sample_app/issues/10"},"comments":{"href":"https://api.github.com/repos/sangnuce/sample_app/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/sangnuce/sample_app/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/sangnuce/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sangnuce/sample_app/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/sangnuce/sample_app/statuses/eb002a39b387a9e4fc66ac8e83394c13703fc97d"}}}}
{"actor":{"display_login":"daonhat"}}