{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/comments/200642126","pull_request_review_id":134998763,"id":200642126,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDY0MjEyNg==","diff_hunk":"@@ -1,32 +1,17 @@\n class CategoriesController < ApplicationController\n   before_action :logged_in_user, except: [:index, :show]\n-  before_action :admin_user, only: [:new, :create]\n \n   def index\n     @categories = Category.all\n   end\n \n   def new\n-    @category = Category.new\n+    redirect_to root_url","path":"app/controllers/categories_controller.rb","position":11,"original_position":11,"commit_id":"5c20e8ca36f4d81d1437c373ee433c4af8b3f6ed","original_commit_id":"5c20e8ca36f4d81d1437c373ee433c4af8b3f6ed","user":{"login":"huongnguyenmta","id":18224922,"node_id":"MDQ6VXNlcjE4MjI0OTIy","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":"Xử lý thế này là như nào nhỉ?","created_at":"2018-07-06T12:46:04Z","updated_at":"2018-07-06T12:50:13Z","html_url":"https://github.com/awesome-academy/pr1801-e-learning-system/pull/17#discussion_r200642126","pull_request_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/comments/200642126"},"html":{"href":"https://github.com/awesome-academy/pr1801-e-learning-system/pull/17#discussion_r200642126"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17","id":199735009,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NzM1MDA5","html_url":"https://github.com/awesome-academy/pr1801-e-learning-system/pull/17","diff_url":"https://github.com/awesome-academy/pr1801-e-learning-system/pull/17.diff","patch_url":"https://github.com/awesome-academy/pr1801-e-learning-system/pull/17.patch","issue_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/issues/17","number":17,"state":"open","locked":false,"title":"ref Task#5 edit_delete lesson & create namespace admin","user":{"login":"tdtrung5893","id":37621032,"node_id":"MDQ6VXNlcjM3NjIxMDMy","avatar_url":"https://avatars2.githubusercontent.com/u/37621032?v=4","gravatar_id":"","url":"https://api.github.com/users/tdtrung5893","html_url":"https://github.com/tdtrung5893","followers_url":"https://api.github.com/users/tdtrung5893/followers","following_url":"https://api.github.com/users/tdtrung5893/following{/other_user}","gists_url":"https://api.github.com/users/tdtrung5893/gists{/gist_id}","starred_url":"https://api.github.com/users/tdtrung5893/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdtrung5893/subscriptions","organizations_url":"https://api.github.com/users/tdtrung5893/orgs","repos_url":"https://api.github.com/users/tdtrung5893/repos","events_url":"https://api.github.com/users/tdtrung5893/events{/privacy}","received_events_url":"https://api.github.com/users/tdtrung5893/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-06T12:37:34Z","updated_at":"2018-07-06T12:50:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25cad4eb86c1ceb2f7196458448b9443b247a009","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/issues/17/comments","statuses_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/statuses/5c20e8ca36f4d81d1437c373ee433c4af8b3f6ed","head":{"label":"tdtrung5893:edit_delete_lesson","ref":"edit_delete_lesson","sha":"5c20e8ca36f4d81d1437c373ee433c4af8b3f6ed","user":{"login":"tdtrung5893","id":37621032,"node_id":"MDQ6VXNlcjM3NjIxMDMy","avatar_url":"https://avatars2.githubusercontent.com/u/37621032?v=4","gravatar_id":"","url":"https://api.github.com/users/tdtrung5893","html_url":"https://github.com/tdtrung5893","followers_url":"https://api.github.com/users/tdtrung5893/followers","following_url":"https://api.github.com/users/tdtrung5893/following{/other_user}","gists_url":"https://api.github.com/users/tdtrung5893/gists{/gist_id}","starred_url":"https://api.github.com/users/tdtrung5893/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdtrung5893/subscriptions","organizations_url":"https://api.github.com/users/tdtrung5893/orgs","repos_url":"https://api.github.com/users/tdtrung5893/repos","events_url":"https://api.github.com/users/tdtrung5893/events{/privacy}","received_events_url":"https://api.github.com/users/tdtrung5893/received_events","type":"User","site_admin":false},"repo":{"id":137479428,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc0Nzk0Mjg=","name":"pr1801-e-learning-system","full_name":"tdtrung5893/pr1801-e-learning-system","owner":{"login":"tdtrung5893","id":37621032,"node_id":"MDQ6VXNlcjM3NjIxMDMy","avatar_url":"https://avatars2.githubusercontent.com/u/37621032?v=4","gravatar_id":"","url":"https://api.github.com/users/tdtrung5893","html_url":"https://github.com/tdtrung5893","followers_url":"https://api.github.com/users/tdtrung5893/followers","following_url":"https://api.github.com/users/tdtrung5893/following{/other_user}","gists_url":"https://api.github.com/users/tdtrung5893/gists{/gist_id}","starred_url":"https://api.github.com/users/tdtrung5893/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdtrung5893/subscriptions","organizations_url":"https://api.github.com/users/tdtrung5893/orgs","repos_url":"https://api.github.com/users/tdtrung5893/repos","events_url":"https://api.github.com/users/tdtrung5893/events{/privacy}","received_events_url":"https://api.github.com/users/tdtrung5893/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tdtrung5893/pr1801-e-learning-system","description":null,"fork":true,"url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system","forks_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/forks","keys_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/teams","hooks_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/hooks","issue_events_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/issues/events{/number}","events_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/events","assignees_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/assignees{/user}","branches_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/branches{/branch}","tags_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/tags","blobs_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/statuses/{sha}","languages_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/languages","stargazers_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/stargazers","contributors_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/contributors","subscribers_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/subscribers","subscription_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/subscription","commits_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/contents/{+path}","compare_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/merges","archive_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/downloads","issues_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/issues{/number}","pulls_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/pulls{/number}","milestones_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/milestones{/number}","notifications_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/labels{/name}","releases_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/releases{/id}","deployments_url":"https://api.github.com/repos/tdtrung5893/pr1801-e-learning-system/deployments","created_at":"2018-06-15T11:24:40Z","updated_at":"2018-06-15T11:24:42Z","pushed_at":"2018-07-06T12:41:28Z","git_url":"git://github.com/tdtrung5893/pr1801-e-learning-system.git","ssh_url":"git@github.com:tdtrung5893/pr1801-e-learning-system.git","clone_url":"https://github.com/tdtrung5893/pr1801-e-learning-system.git","svn_url":"https://github.com/tdtrung5893/pr1801-e-learning-system","homepage":null,"size":1995,"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:master","ref":"master","sha":"f094c7bc2bc63fda8d0f8d7de11e6f35f43d0cfd","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","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":136917039,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY5MTcwMzk=","name":"pr1801-e-learning-system","full_name":"awesome-academy/pr1801-e-learning-system","owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","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/pr1801-e-learning-system","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system","forks_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/forks","keys_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/teams","hooks_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/events","assignees_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/tags","blobs_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/subscription","commits_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/merges","archive_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/downloads","issues_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/deployments","created_at":"2018-06-11T11:29:16Z","updated_at":"2018-07-04T11:30:54Z","pushed_at":"2018-07-06T12:41:29Z","git_url":"git://github.com/awesome-academy/pr1801-e-learning-system.git","ssh_url":"git@github.com:awesome-academy/pr1801-e-learning-system.git","clone_url":"https://github.com/awesome-academy/pr1801-e-learning-system.git","svn_url":"https://github.com/awesome-academy/pr1801-e-learning-system","homepage":null,"size":2001,"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":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17"},"html":{"href":"https://github.com/awesome-academy/pr1801-e-learning-system/pull/17"},"issue":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/issues/17"},"comments":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/pr1801-e-learning-system/statuses/5c20e8ca36f4d81d1437c373ee433c4af8b3f6ed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"huongnguyenmta"}}