{"action":"created","comment":{"url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/comments/78311917","id":78311917,"diff_hunk":"@@ -1,4 +1,30 @@\n class UsersController < ApplicationController\n   def new\n+    @user = User.new\n+  end\n+\n+  def show\n+    @user = User.find params[:id]\n+    if @user.blank?\n+      render html: \"User not available\"\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+\n+      redirect_to @user\n+    else\n+      render html: \"False\"\n+    end\n+  end\n+\n+  private\n+","path":"app/controllers/users_controller.rb","position":25,"original_position":25,"commit_id":"06c1e9c569a9b8733898385cfe46c8281e60b61f","original_commit_id":"06c1e9c569a9b8733898385cfe46c8281e60b61f","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":"xóa dong","created_at":"2016-09-12T03:25:46Z","updated_at":"2016-09-12T03:25:46Z","html_url":"https://github.com/vuhuutuan262/sample_app/pull/4#discussion_r78311917","pull_request_url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/comments/78311917"},"html":{"href":"https://github.com/vuhuutuan262/sample_app/pull/4#discussion_r78311917"},"pull_request":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/4","id":84810132,"html_url":"https://github.com/vuhuutuan262/sample_app/pull/4","diff_url":"https://github.com/vuhuutuan262/sample_app/pull/4.diff","patch_url":"https://github.com/vuhuutuan262/sample_app/pull/4.patch","issue_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/4","number":4,"state":"open","locked":false,"title":"Finish user signup","user":{"login":"vuhuutuan262","id":22019668,"avatar_url":"https://avatars.githubusercontent.com/u/22019668?v=3","gravatar_id":"","url":"https://api.github.com/users/vuhuutuan262","html_url":"https://github.com/vuhuutuan262","followers_url":"https://api.github.com/users/vuhuutuan262/followers","following_url":"https://api.github.com/users/vuhuutuan262/following{/other_user}","gists_url":"https://api.github.com/users/vuhuutuan262/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhuutuan262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhuutuan262/subscriptions","organizations_url":"https://api.github.com/users/vuhuutuan262/orgs","repos_url":"https://api.github.com/users/vuhuutuan262/repos","events_url":"https://api.github.com/users/vuhuutuan262/events{/privacy}","received_events_url":"https://api.github.com/users/vuhuutuan262/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-12T03:07:03Z","updated_at":"2016-09-12T03:25:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a5b698da8864cfc81a45883c7553ee2f1c6ef5ed","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/4/commits","review_comments_url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/4/comments","review_comment_url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/4/comments","statuses_url":"https://api.github.com/repos/vuhuutuan262/sample_app/statuses/06c1e9c569a9b8733898385cfe46c8281e60b61f","head":{"label":"vuhuutuan262:modeling-users","ref":"modeling-users","sha":"06c1e9c569a9b8733898385cfe46c8281e60b61f","user":{"login":"vuhuutuan262","id":22019668,"avatar_url":"https://avatars.githubusercontent.com/u/22019668?v=3","gravatar_id":"","url":"https://api.github.com/users/vuhuutuan262","html_url":"https://github.com/vuhuutuan262","followers_url":"https://api.github.com/users/vuhuutuan262/followers","following_url":"https://api.github.com/users/vuhuutuan262/following{/other_user}","gists_url":"https://api.github.com/users/vuhuutuan262/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhuutuan262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhuutuan262/subscriptions","organizations_url":"https://api.github.com/users/vuhuutuan262/orgs","repos_url":"https://api.github.com/users/vuhuutuan262/repos","events_url":"https://api.github.com/users/vuhuutuan262/events{/privacy}","received_events_url":"https://api.github.com/users/vuhuutuan262/received_events","type":"User","site_admin":false},"repo":{"id":67755602,"name":"sample_app","full_name":"vuhuutuan262/sample_app","owner":{"login":"vuhuutuan262","id":22019668,"avatar_url":"https://avatars.githubusercontent.com/u/22019668?v=3","gravatar_id":"","url":"https://api.github.com/users/vuhuutuan262","html_url":"https://github.com/vuhuutuan262","followers_url":"https://api.github.com/users/vuhuutuan262/followers","following_url":"https://api.github.com/users/vuhuutuan262/following{/other_user}","gists_url":"https://api.github.com/users/vuhuutuan262/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhuutuan262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhuutuan262/subscriptions","organizations_url":"https://api.github.com/users/vuhuutuan262/orgs","repos_url":"https://api.github.com/users/vuhuutuan262/repos","events_url":"https://api.github.com/users/vuhuutuan262/events{/privacy}","received_events_url":"https://api.github.com/users/vuhuutuan262/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vuhuutuan262/sample_app","description":"Tutorial","fork":false,"url":"https://api.github.com/repos/vuhuutuan262/sample_app","forks_url":"https://api.github.com/repos/vuhuutuan262/sample_app/forks","keys_url":"https://api.github.com/repos/vuhuutuan262/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuhuutuan262/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuhuutuan262/sample_app/teams","hooks_url":"https://api.github.com/repos/vuhuutuan262/sample_app/hooks","issue_events_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/vuhuutuan262/sample_app/events","assignees_url":"https://api.github.com/repos/vuhuutuan262/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/vuhuutuan262/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/vuhuutuan262/sample_app/tags","blobs_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuhuutuan262/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/vuhuutuan262/sample_app/languages","stargazers_url":"https://api.github.com/repos/vuhuutuan262/sample_app/stargazers","contributors_url":"https://api.github.com/repos/vuhuutuan262/sample_app/contributors","subscribers_url":"https://api.github.com/repos/vuhuutuan262/sample_app/subscribers","subscription_url":"https://api.github.com/repos/vuhuutuan262/sample_app/subscription","commits_url":"https://api.github.com/repos/vuhuutuan262/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuhuutuan262/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuhuutuan262/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/vuhuutuan262/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuhuutuan262/sample_app/merges","archive_url":"https://api.github.com/repos/vuhuutuan262/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuhuutuan262/sample_app/downloads","issues_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/vuhuutuan262/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/vuhuutuan262/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuhuutuan262/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/vuhuutuan262/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/vuhuutuan262/sample_app/deployments","created_at":"2016-09-09T01:50:26Z","updated_at":"2016-09-09T01:51:30Z","pushed_at":"2016-09-12T03:18:49Z","git_url":"git://github.com/vuhuutuan262/sample_app.git","ssh_url":"git@github.com:vuhuutuan262/sample_app.git","clone_url":"https://github.com/vuhuutuan262/sample_app.git","svn_url":"https://github.com/vuhuutuan262/sample_app","homepage":null,"size":46,"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":"vuhuutuan262:master","ref":"master","sha":"d063d431a04d5fc91ff3f783649a0114631e3bae","user":{"login":"vuhuutuan262","id":22019668,"avatar_url":"https://avatars.githubusercontent.com/u/22019668?v=3","gravatar_id":"","url":"https://api.github.com/users/vuhuutuan262","html_url":"https://github.com/vuhuutuan262","followers_url":"https://api.github.com/users/vuhuutuan262/followers","following_url":"https://api.github.com/users/vuhuutuan262/following{/other_user}","gists_url":"https://api.github.com/users/vuhuutuan262/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhuutuan262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhuutuan262/subscriptions","organizations_url":"https://api.github.com/users/vuhuutuan262/orgs","repos_url":"https://api.github.com/users/vuhuutuan262/repos","events_url":"https://api.github.com/users/vuhuutuan262/events{/privacy}","received_events_url":"https://api.github.com/users/vuhuutuan262/received_events","type":"User","site_admin":false},"repo":{"id":67755602,"name":"sample_app","full_name":"vuhuutuan262/sample_app","owner":{"login":"vuhuutuan262","id":22019668,"avatar_url":"https://avatars.githubusercontent.com/u/22019668?v=3","gravatar_id":"","url":"https://api.github.com/users/vuhuutuan262","html_url":"https://github.com/vuhuutuan262","followers_url":"https://api.github.com/users/vuhuutuan262/followers","following_url":"https://api.github.com/users/vuhuutuan262/following{/other_user}","gists_url":"https://api.github.com/users/vuhuutuan262/gists{/gist_id}","starred_url":"https://api.github.com/users/vuhuutuan262/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuhuutuan262/subscriptions","organizations_url":"https://api.github.com/users/vuhuutuan262/orgs","repos_url":"https://api.github.com/users/vuhuutuan262/repos","events_url":"https://api.github.com/users/vuhuutuan262/events{/privacy}","received_events_url":"https://api.github.com/users/vuhuutuan262/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vuhuutuan262/sample_app","description":"Tutorial","fork":false,"url":"https://api.github.com/repos/vuhuutuan262/sample_app","forks_url":"https://api.github.com/repos/vuhuutuan262/sample_app/forks","keys_url":"https://api.github.com/repos/vuhuutuan262/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuhuutuan262/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuhuutuan262/sample_app/teams","hooks_url":"https://api.github.com/repos/vuhuutuan262/sample_app/hooks","issue_events_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/vuhuutuan262/sample_app/events","assignees_url":"https://api.github.com/repos/vuhuutuan262/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/vuhuutuan262/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/vuhuutuan262/sample_app/tags","blobs_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuhuutuan262/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/vuhuutuan262/sample_app/languages","stargazers_url":"https://api.github.com/repos/vuhuutuan262/sample_app/stargazers","contributors_url":"https://api.github.com/repos/vuhuutuan262/sample_app/contributors","subscribers_url":"https://api.github.com/repos/vuhuutuan262/sample_app/subscribers","subscription_url":"https://api.github.com/repos/vuhuutuan262/sample_app/subscription","commits_url":"https://api.github.com/repos/vuhuutuan262/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuhuutuan262/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuhuutuan262/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuhuutuan262/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/vuhuutuan262/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuhuutuan262/sample_app/merges","archive_url":"https://api.github.com/repos/vuhuutuan262/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuhuutuan262/sample_app/downloads","issues_url":"https://api.github.com/repos/vuhuutuan262/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/vuhuutuan262/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/vuhuutuan262/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuhuutuan262/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/vuhuutuan262/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/vuhuutuan262/sample_app/deployments","created_at":"2016-09-09T01:50:26Z","updated_at":"2016-09-09T01:51:30Z","pushed_at":"2016-09-12T03:18:49Z","git_url":"git://github.com/vuhuutuan262/sample_app.git","ssh_url":"git@github.com:vuhuutuan262/sample_app.git","clone_url":"https://github.com/vuhuutuan262/sample_app.git","svn_url":"https://github.com/vuhuutuan262/sample_app","homepage":null,"size":46,"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/vuhuutuan262/sample_app/pulls/4"},"html":{"href":"https://github.com/vuhuutuan262/sample_app/pull/4"},"issue":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/4"},"comments":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/vuhuutuan262/sample_app/statuses/06c1e9c569a9b8733898385cfe46c8281e60b61f"}}}}
{"actor":{"display_login":"hellovietnam93"}}