{"action":"created","comment":{"url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/comments/178504993","pull_request_review_id":108568780,"id":178504993,"diff_hunk":"@@ -28,10 +31,50 @@ def create\n \n   end\n \n+  def edit\n+\n+  end\n+\n+  def update\n+    if @user.update_attributes user_params\n+      flash[:success] = t \"users.edit.success\"\n+      redirect_to @user\n+    else\n+      render :edit\n+    end\n+\n+  end\n+\n+  def destroy\n+    @user.destroy","path":"app/controllers/users_controller.rb","position":43,"original_position":43,"commit_id":"099b4aa19fc3b8717e4ee9c1553b2a8f429442c5","original_commit_id":"099b4aa19fc3b8717e4ee9c1553b2a8f429442c5","user":{"login":"huongnguyenmta","id":18224922,"avatar_url":"https://avatars3.githubusercontent.com/u/18224922?v=4","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"body":"check trường hợp fail nhé","created_at":"2018-04-02T08:06:26Z","updated_at":"2018-04-02T08:08:53Z","html_url":"https://github.com/BadboYBG/sample_app/pull/6#discussion_r178504993","pull_request_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/comments/178504993"},"html":{"href":"https://github.com/BadboYBG/sample_app/pull/6#discussion_r178504993"},"pull_request":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/6","id":178072388,"html_url":"https://github.com/BadboYBG/sample_app/pull/6","diff_url":"https://github.com/BadboYBG/sample_app/pull/6.diff","patch_url":"https://github.com/BadboYBG/sample_app/pull/6.patch","issue_url":"https://api.github.com/repos/BadboYBG/sample_app/issues/6","number":6,"state":"open","locked":false,"title":"Chuong 10 Finish user edit, update, index, and destroy actions","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":"ready","created_at":"2018-03-28T15:13:31Z","updated_at":"2018-04-02T08:08:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5aadab55821f0ec983597940a3c7e397b9d4b4c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/6/commits","review_comments_url":"https://api.github.com/repos/BadboYBG/sample_app/pulls/6/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/6/comments","statuses_url":"https://api.github.com/repos/BadboYBG/sample_app/statuses/099b4aa19fc3b8717e4ee9c1553b2a8f429442c5","head":{"label":"BadboYBG:Chuong_10","ref":"Chuong_10","sha":"099b4aa19fc3b8717e4ee9c1553b2a8f429442c5","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-27T03:45:41Z","pushed_at":"2018-04-02T07:18:15Z","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":84,"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":"9a60c16df92ee6524ab34bf74b75801104fa3f2f","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-27T03:45:41Z","pushed_at":"2018-04-02T07:18:15Z","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":84,"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/6"},"html":{"href":"https://github.com/BadboYBG/sample_app/pull/6"},"issue":{"href":"https://api.github.com/repos/BadboYBG/sample_app/issues/6"},"comments":{"href":"https://api.github.com/repos/BadboYBG/sample_app/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/BadboYBG/sample_app/pulls/6/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/6/commits"},"statuses":{"href":"https://api.github.com/repos/BadboYBG/sample_app/statuses/099b4aa19fc3b8717e4ee9c1553b2a8f429442c5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"huongnguyenmta"}}