{"action":"created","comment":{"url":"https://api.github.com/repos/duongpham910/trainingRails/pulls/comments/80397559","id":80397559,"diff_hunk":"@@ -1,4 +1,25 @@\n class UsersController < ApplicationController\n+  \n+  def show\n+    @user= User.find params[:id]\n+  end\n+\n   def new\n+    @user = User.new\n+  end\n+\n+  def create\n+    @user = User.new user_params\n+    if @user.save\n+      flash[:success] = \"Welcome to the Sample App!\"\t\n+      redirect_to @user\n+    else\n+      render \"new\"\n+    end\n+  end\n+\n+  def user_params","path":"app/controllers/users_controller.rb","position":21,"original_position":21,"commit_id":"31299a86549aca3ff4ddfb78c031ef8be8a9a83c","original_commit_id":"31299a86549aca3ff4ddfb78c031ef8be8a9a83c","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":"public method?","created_at":"2016-09-26T01:13:13Z","updated_at":"2016-09-26T01:13:13Z","html_url":"https://github.com/duongpham910/trainingRails/pull/9#discussion_r80397559","pull_request_url":"https://api.github.com/repos/duongpham910/trainingRails/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/duongpham910/trainingRails/pulls/comments/80397559"},"html":{"href":"https://github.com/duongpham910/trainingRails/pull/9#discussion_r80397559"},"pull_request":{"href":"https://api.github.com/repos/duongpham910/trainingRails/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/duongpham910/trainingRails/pulls/9","id":86669485,"html_url":"https://github.com/duongpham910/trainingRails/pull/9","diff_url":"https://github.com/duongpham910/trainingRails/pull/9.diff","patch_url":"https://github.com/duongpham910/trainingRails/pull/9.patch","issue_url":"https://api.github.com/repos/duongpham910/trainingRails/issues/9","number":9,"state":"open","locked":false,"title":"Finished Sign-up(chap 7)","user":{"login":"duongpham910","id":14211899,"avatar_url":"https://avatars.githubusercontent.com/u/14211899?v=3","gravatar_id":"","url":"https://api.github.com/users/duongpham910","html_url":"https://github.com/duongpham910","followers_url":"https://api.github.com/users/duongpham910/followers","following_url":"https://api.github.com/users/duongpham910/following{/other_user}","gists_url":"https://api.github.com/users/duongpham910/gists{/gist_id}","starred_url":"https://api.github.com/users/duongpham910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongpham910/subscriptions","organizations_url":"https://api.github.com/users/duongpham910/orgs","repos_url":"https://api.github.com/users/duongpham910/repos","events_url":"https://api.github.com/users/duongpham910/events{/privacy}","received_events_url":"https://api.github.com/users/duongpham910/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-26T01:07:33Z","updated_at":"2016-09-26T01:16:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2d670f383529f6666be5162250fedf7a180aee7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/duongpham910/trainingRails/pulls/9/commits","review_comments_url":"https://api.github.com/repos/duongpham910/trainingRails/pulls/9/comments","review_comment_url":"https://api.github.com/repos/duongpham910/trainingRails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duongpham910/trainingRails/issues/9/comments","statuses_url":"https://api.github.com/repos/duongpham910/trainingRails/statuses/31299a86549aca3ff4ddfb78c031ef8be8a9a83c","head":{"label":"duongpham910:sign-up","ref":"sign-up","sha":"31299a86549aca3ff4ddfb78c031ef8be8a9a83c","user":{"login":"duongpham910","id":14211899,"avatar_url":"https://avatars.githubusercontent.com/u/14211899?v=3","gravatar_id":"","url":"https://api.github.com/users/duongpham910","html_url":"https://github.com/duongpham910","followers_url":"https://api.github.com/users/duongpham910/followers","following_url":"https://api.github.com/users/duongpham910/following{/other_user}","gists_url":"https://api.github.com/users/duongpham910/gists{/gist_id}","starred_url":"https://api.github.com/users/duongpham910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongpham910/subscriptions","organizations_url":"https://api.github.com/users/duongpham910/orgs","repos_url":"https://api.github.com/users/duongpham910/repos","events_url":"https://api.github.com/users/duongpham910/events{/privacy}","received_events_url":"https://api.github.com/users/duongpham910/received_events","type":"User","site_admin":false},"repo":{"id":68738365,"name":"trainingRails","full_name":"duongpham910/trainingRails","owner":{"login":"duongpham910","id":14211899,"avatar_url":"https://avatars.githubusercontent.com/u/14211899?v=3","gravatar_id":"","url":"https://api.github.com/users/duongpham910","html_url":"https://github.com/duongpham910","followers_url":"https://api.github.com/users/duongpham910/followers","following_url":"https://api.github.com/users/duongpham910/following{/other_user}","gists_url":"https://api.github.com/users/duongpham910/gists{/gist_id}","starred_url":"https://api.github.com/users/duongpham910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongpham910/subscriptions","organizations_url":"https://api.github.com/users/duongpham910/orgs","repos_url":"https://api.github.com/users/duongpham910/repos","events_url":"https://api.github.com/users/duongpham910/events{/privacy}","received_events_url":"https://api.github.com/users/duongpham910/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duongpham910/trainingRails","description":null,"fork":false,"url":"https://api.github.com/repos/duongpham910/trainingRails","forks_url":"https://api.github.com/repos/duongpham910/trainingRails/forks","keys_url":"https://api.github.com/repos/duongpham910/trainingRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duongpham910/trainingRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duongpham910/trainingRails/teams","hooks_url":"https://api.github.com/repos/duongpham910/trainingRails/hooks","issue_events_url":"https://api.github.com/repos/duongpham910/trainingRails/issues/events{/number}","events_url":"https://api.github.com/repos/duongpham910/trainingRails/events","assignees_url":"https://api.github.com/repos/duongpham910/trainingRails/assignees{/user}","branches_url":"https://api.github.com/repos/duongpham910/trainingRails/branches{/branch}","tags_url":"https://api.github.com/repos/duongpham910/trainingRails/tags","blobs_url":"https://api.github.com/repos/duongpham910/trainingRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duongpham910/trainingRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duongpham910/trainingRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/duongpham910/trainingRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duongpham910/trainingRails/statuses/{sha}","languages_url":"https://api.github.com/repos/duongpham910/trainingRails/languages","stargazers_url":"https://api.github.com/repos/duongpham910/trainingRails/stargazers","contributors_url":"https://api.github.com/repos/duongpham910/trainingRails/contributors","subscribers_url":"https://api.github.com/repos/duongpham910/trainingRails/subscribers","subscription_url":"https://api.github.com/repos/duongpham910/trainingRails/subscription","commits_url":"https://api.github.com/repos/duongpham910/trainingRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/duongpham910/trainingRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/duongpham910/trainingRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/duongpham910/trainingRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/duongpham910/trainingRails/contents/{+path}","compare_url":"https://api.github.com/repos/duongpham910/trainingRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duongpham910/trainingRails/merges","archive_url":"https://api.github.com/repos/duongpham910/trainingRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duongpham910/trainingRails/downloads","issues_url":"https://api.github.com/repos/duongpham910/trainingRails/issues{/number}","pulls_url":"https://api.github.com/repos/duongpham910/trainingRails/pulls{/number}","milestones_url":"https://api.github.com/repos/duongpham910/trainingRails/milestones{/number}","notifications_url":"https://api.github.com/repos/duongpham910/trainingRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duongpham910/trainingRails/labels{/name}","releases_url":"https://api.github.com/repos/duongpham910/trainingRails/releases{/id}","deployments_url":"https://api.github.com/repos/duongpham910/trainingRails/deployments","created_at":"2016-09-20T17:51:15Z","updated_at":"2016-09-20T17:53:13Z","pushed_at":"2016-09-26T01:11:27Z","git_url":"git://github.com/duongpham910/trainingRails.git","ssh_url":"git@github.com:duongpham910/trainingRails.git","clone_url":"https://github.com/duongpham910/trainingRails.git","svn_url":"https://github.com/duongpham910/trainingRails","homepage":null,"size":55,"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":"duongpham910:develop","ref":"develop","sha":"1849d7a4b5018c407af0a50632856493cd2711e5","user":{"login":"duongpham910","id":14211899,"avatar_url":"https://avatars.githubusercontent.com/u/14211899?v=3","gravatar_id":"","url":"https://api.github.com/users/duongpham910","html_url":"https://github.com/duongpham910","followers_url":"https://api.github.com/users/duongpham910/followers","following_url":"https://api.github.com/users/duongpham910/following{/other_user}","gists_url":"https://api.github.com/users/duongpham910/gists{/gist_id}","starred_url":"https://api.github.com/users/duongpham910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongpham910/subscriptions","organizations_url":"https://api.github.com/users/duongpham910/orgs","repos_url":"https://api.github.com/users/duongpham910/repos","events_url":"https://api.github.com/users/duongpham910/events{/privacy}","received_events_url":"https://api.github.com/users/duongpham910/received_events","type":"User","site_admin":false},"repo":{"id":68738365,"name":"trainingRails","full_name":"duongpham910/trainingRails","owner":{"login":"duongpham910","id":14211899,"avatar_url":"https://avatars.githubusercontent.com/u/14211899?v=3","gravatar_id":"","url":"https://api.github.com/users/duongpham910","html_url":"https://github.com/duongpham910","followers_url":"https://api.github.com/users/duongpham910/followers","following_url":"https://api.github.com/users/duongpham910/following{/other_user}","gists_url":"https://api.github.com/users/duongpham910/gists{/gist_id}","starred_url":"https://api.github.com/users/duongpham910/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duongpham910/subscriptions","organizations_url":"https://api.github.com/users/duongpham910/orgs","repos_url":"https://api.github.com/users/duongpham910/repos","events_url":"https://api.github.com/users/duongpham910/events{/privacy}","received_events_url":"https://api.github.com/users/duongpham910/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duongpham910/trainingRails","description":null,"fork":false,"url":"https://api.github.com/repos/duongpham910/trainingRails","forks_url":"https://api.github.com/repos/duongpham910/trainingRails/forks","keys_url":"https://api.github.com/repos/duongpham910/trainingRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duongpham910/trainingRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duongpham910/trainingRails/teams","hooks_url":"https://api.github.com/repos/duongpham910/trainingRails/hooks","issue_events_url":"https://api.github.com/repos/duongpham910/trainingRails/issues/events{/number}","events_url":"https://api.github.com/repos/duongpham910/trainingRails/events","assignees_url":"https://api.github.com/repos/duongpham910/trainingRails/assignees{/user}","branches_url":"https://api.github.com/repos/duongpham910/trainingRails/branches{/branch}","tags_url":"https://api.github.com/repos/duongpham910/trainingRails/tags","blobs_url":"https://api.github.com/repos/duongpham910/trainingRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duongpham910/trainingRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duongpham910/trainingRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/duongpham910/trainingRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duongpham910/trainingRails/statuses/{sha}","languages_url":"https://api.github.com/repos/duongpham910/trainingRails/languages","stargazers_url":"https://api.github.com/repos/duongpham910/trainingRails/stargazers","contributors_url":"https://api.github.com/repos/duongpham910/trainingRails/contributors","subscribers_url":"https://api.github.com/repos/duongpham910/trainingRails/subscribers","subscription_url":"https://api.github.com/repos/duongpham910/trainingRails/subscription","commits_url":"https://api.github.com/repos/duongpham910/trainingRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/duongpham910/trainingRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/duongpham910/trainingRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/duongpham910/trainingRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/duongpham910/trainingRails/contents/{+path}","compare_url":"https://api.github.com/repos/duongpham910/trainingRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duongpham910/trainingRails/merges","archive_url":"https://api.github.com/repos/duongpham910/trainingRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duongpham910/trainingRails/downloads","issues_url":"https://api.github.com/repos/duongpham910/trainingRails/issues{/number}","pulls_url":"https://api.github.com/repos/duongpham910/trainingRails/pulls{/number}","milestones_url":"https://api.github.com/repos/duongpham910/trainingRails/milestones{/number}","notifications_url":"https://api.github.com/repos/duongpham910/trainingRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duongpham910/trainingRails/labels{/name}","releases_url":"https://api.github.com/repos/duongpham910/trainingRails/releases{/id}","deployments_url":"https://api.github.com/repos/duongpham910/trainingRails/deployments","created_at":"2016-09-20T17:51:15Z","updated_at":"2016-09-20T17:53:13Z","pushed_at":"2016-09-26T01:11:27Z","git_url":"git://github.com/duongpham910/trainingRails.git","ssh_url":"git@github.com:duongpham910/trainingRails.git","clone_url":"https://github.com/duongpham910/trainingRails.git","svn_url":"https://github.com/duongpham910/trainingRails","homepage":null,"size":55,"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/duongpham910/trainingRails/pulls/9"},"html":{"href":"https://github.com/duongpham910/trainingRails/pull/9"},"issue":{"href":"https://api.github.com/repos/duongpham910/trainingRails/issues/9"},"comments":{"href":"https://api.github.com/repos/duongpham910/trainingRails/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/duongpham910/trainingRails/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/duongpham910/trainingRails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duongpham910/trainingRails/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/duongpham910/trainingRails/statuses/31299a86549aca3ff4ddfb78c031ef8be8a9a83c"}}}}
{"actor":{"display_login":"hellovietnam93"}}