{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/comments/157464282","pull_request_review_id":84108312,"id":157464282,"diff_hunk":"@@ -1,3 +1,12 @@\n class Admin::UsersController < ApplicationController\n \n+  def index\n+    @user = User.all.paginate(page: params[:page])\n+  end\n+\n+  def destroy\n+    @user = User.find(params[:id])","path":"app/controllers/admin/users_controller.rb","position":8,"original_position":8,"commit_id":"3ce00b7e913ac2db3cd7346f584060a5be828f91","original_commit_id":"3ce00b7e913ac2db3cd7346f584060a5be828f91","user":{"login":"hungnh103","id":22311747,"avatar_url":"https://avatars0.githubusercontent.com/u/22311747?v=4","gravatar_id":"","url":"https://api.github.com/users/hungnh103","html_url":"https://github.com/hungnh103","followers_url":"https://api.github.com/users/hungnh103/followers","following_url":"https://api.github.com/users/hungnh103/following{/other_user}","gists_url":"https://api.github.com/users/hungnh103/gists{/gist_id}","starred_url":"https://api.github.com/users/hungnh103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungnh103/subscriptions","organizations_url":"https://api.github.com/users/hungnh103/orgs","repos_url":"https://api.github.com/users/hungnh103/repos","events_url":"https://api.github.com/users/hungnh103/events{/privacy}","received_events_url":"https://api.github.com/users/hungnh103/received_events","type":"User","site_admin":false},"body":"- anh dùng method `find_by` thay cho `find` nhé\r\n- chưa xử lý trường hợp ko tìm thấy bản ghi","created_at":"2017-12-18T11:51:59Z","updated_at":"2017-12-18T11:53:44Z","html_url":"https://github.com/awesome-academy/ornamental_trees_online/pull/17#discussion_r157464282","pull_request_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/comments/157464282"},"html":{"href":"https://github.com/awesome-academy/ornamental_trees_online/pull/17#discussion_r157464282"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17","id":158886964,"html_url":"https://github.com/awesome-academy/ornamental_trees_online/pull/17","diff_url":"https://github.com/awesome-academy/ornamental_trees_online/pull/17.diff","patch_url":"https://github.com/awesome-academy/ornamental_trees_online/pull/17.patch","issue_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/issues/17","number":17,"state":"open","locked":false,"title":"edit products","user":{"login":"nguyenvu1892","id":22019661,"avatar_url":"https://avatars1.githubusercontent.com/u/22019661?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenvu1892","html_url":"https://github.com/nguyenvu1892","followers_url":"https://api.github.com/users/nguyenvu1892/followers","following_url":"https://api.github.com/users/nguyenvu1892/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvu1892/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvu1892/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvu1892/subscriptions","organizations_url":"https://api.github.com/users/nguyenvu1892/orgs","repos_url":"https://api.github.com/users/nguyenvu1892/repos","events_url":"https://api.github.com/users/nguyenvu1892/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvu1892/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-12-18T11:13:09Z","updated_at":"2017-12-18T11:53:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c24a8185fb4f0f0a5e91ce0c3b51cf480d89a1d9","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/issues/17/comments","statuses_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/statuses/3ce00b7e913ac2db3cd7346f584060a5be828f91","head":{"label":"nguyenvu1892:edit_product","ref":"edit_product","sha":"3ce00b7e913ac2db3cd7346f584060a5be828f91","user":{"login":"nguyenvu1892","id":22019661,"avatar_url":"https://avatars1.githubusercontent.com/u/22019661?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenvu1892","html_url":"https://github.com/nguyenvu1892","followers_url":"https://api.github.com/users/nguyenvu1892/followers","following_url":"https://api.github.com/users/nguyenvu1892/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvu1892/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvu1892/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvu1892/subscriptions","organizations_url":"https://api.github.com/users/nguyenvu1892/orgs","repos_url":"https://api.github.com/users/nguyenvu1892/repos","events_url":"https://api.github.com/users/nguyenvu1892/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvu1892/received_events","type":"User","site_admin":false},"repo":{"id":111923992,"name":"ornamental_trees_online","full_name":"nguyenvu1892/ornamental_trees_online","owner":{"login":"nguyenvu1892","id":22019661,"avatar_url":"https://avatars1.githubusercontent.com/u/22019661?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenvu1892","html_url":"https://github.com/nguyenvu1892","followers_url":"https://api.github.com/users/nguyenvu1892/followers","following_url":"https://api.github.com/users/nguyenvu1892/following{/other_user}","gists_url":"https://api.github.com/users/nguyenvu1892/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenvu1892/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenvu1892/subscriptions","organizations_url":"https://api.github.com/users/nguyenvu1892/orgs","repos_url":"https://api.github.com/users/nguyenvu1892/repos","events_url":"https://api.github.com/users/nguyenvu1892/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenvu1892/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenvu1892/ornamental_trees_online","description":null,"fork":true,"url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online","forks_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/forks","keys_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/teams","hooks_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/hooks","issue_events_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/events","assignees_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/tags","blobs_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/languages","stargazers_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/stargazers","contributors_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/contributors","subscribers_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/subscribers","subscription_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/subscription","commits_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/merges","archive_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/downloads","issues_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/labels{/name}","releases_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenvu1892/ornamental_trees_online/deployments","created_at":"2017-11-24T13:56:05Z","updated_at":"2017-11-24T13:15:42Z","pushed_at":"2017-12-18T11:47:47Z","git_url":"git://github.com/nguyenvu1892/ornamental_trees_online.git","ssh_url":"git@github.com:nguyenvu1892/ornamental_trees_online.git","clone_url":"https://github.com/nguyenvu1892/ornamental_trees_online.git","svn_url":"https://github.com/nguyenvu1892/ornamental_trees_online","homepage":null,"size":2557,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"awesome-academy:develop","ref":"develop","sha":"75f3c7058b945c94471dd2bffed93c85b933426a","user":{"login":"awesome-academy","id":33895223,"avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":111920390,"name":"ornamental_trees_online","full_name":"awesome-academy/ornamental_trees_online","owner":{"login":"awesome-academy","id":33895223,"avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/awesome-academy/ornamental_trees_online","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online","forks_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/forks","keys_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/teams","hooks_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/events","assignees_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/tags","blobs_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/subscription","commits_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/merges","archive_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/downloads","issues_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/deployments","created_at":"2017-11-24T13:15:42Z","updated_at":"2017-11-27T12:19:23Z","pushed_at":"2017-12-18T11:47:48Z","git_url":"git://github.com/awesome-academy/ornamental_trees_online.git","ssh_url":"git@github.com:awesome-academy/ornamental_trees_online.git","clone_url":"https://github.com/awesome-academy/ornamental_trees_online.git","svn_url":"https://github.com/awesome-academy/ornamental_trees_online","homepage":null,"size":2706,"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":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17"},"html":{"href":"https://github.com/awesome-academy/ornamental_trees_online/pull/17"},"issue":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/issues/17"},"comments":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/ornamental_trees_online/statuses/3ce00b7e913ac2db3cd7346f584060a5be828f91"}},"author_association":"NONE"}}
{"actor":{"display_login":"hungnh103"}}