{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_215/pulls/comments/89727267","pull_request_review_id":10263865,"id":89727267,"diff_hunk":"@@ -0,0 +1,57 @@\n+class Admin::CategoriesController < ApplicationController\n+  before_action :logged_in_user\n+  before_action :verify_admin\n+  before_action :find_category, only: [:update, :edit, :destroy]\n+\n+  def index\n+  end\n+\n+  def new\n+    @category = Category.new\n+    @categories = Category.all.paginate page: params[:page],","path":"app/controllers/admin/categories_controller.rb","position":11,"original_position":11,"commit_id":"ffcead2b25dab8aa2a98ab3600108978aeea73ca","original_commit_id":"32378735c5a8572883b7e37e6d28024cb93a2e7e","user":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"body":"@categories = Category.paginate page: params[:page],\r\n\r\nnên sắp xếp the thứ tự nào đó nhé?","created_at":"2016-11-28T07:19:28Z","updated_at":"2016-11-28T07:42:39Z","html_url":"https://github.com/framgia/fels_215/pull/7#discussion_r89727267","pull_request_url":"https://api.github.com/repos/framgia/fels_215/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_215/pulls/comments/89727267"},"html":{"href":"https://github.com/framgia/fels_215/pull/7#discussion_r89727267"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_215/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_215/pulls/7","id":95435605,"html_url":"https://github.com/framgia/fels_215/pull/7","diff_url":"https://github.com/framgia/fels_215/pull/7.diff","patch_url":"https://github.com/framgia/fels_215/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/fels_215/issues/7","number":7,"state":"open","locked":false,"title":"Create and edit category","user":{"login":"dieptran00888","id":17880912,"avatar_url":"https://avatars.githubusercontent.com/u/17880912?v=3","gravatar_id":"","url":"https://api.github.com/users/dieptran00888","html_url":"https://github.com/dieptran00888","followers_url":"https://api.github.com/users/dieptran00888/followers","following_url":"https://api.github.com/users/dieptran00888/following{/other_user}","gists_url":"https://api.github.com/users/dieptran00888/gists{/gist_id}","starred_url":"https://api.github.com/users/dieptran00888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieptran00888/subscriptions","organizations_url":"https://api.github.com/users/dieptran00888/orgs","repos_url":"https://api.github.com/users/dieptran00888/repos","events_url":"https://api.github.com/users/dieptran00888/events{/privacy}","received_events_url":"https://api.github.com/users/dieptran00888/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-28T04:09:30Z","updated_at":"2016-11-28T07:42:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"960ea57070e5dc443a6b5e496e6f2eb2b84b85a8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_215/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_215/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_215/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_215/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/fels_215/statuses/ffcead2b25dab8aa2a98ab3600108978aeea73ca","head":{"label":"dieptran00888:feature-create-edit-category","ref":"feature-create-edit-category","sha":"ffcead2b25dab8aa2a98ab3600108978aeea73ca","user":{"login":"dieptran00888","id":17880912,"avatar_url":"https://avatars.githubusercontent.com/u/17880912?v=3","gravatar_id":"","url":"https://api.github.com/users/dieptran00888","html_url":"https://github.com/dieptran00888","followers_url":"https://api.github.com/users/dieptran00888/followers","following_url":"https://api.github.com/users/dieptran00888/following{/other_user}","gists_url":"https://api.github.com/users/dieptran00888/gists{/gist_id}","starred_url":"https://api.github.com/users/dieptran00888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieptran00888/subscriptions","organizations_url":"https://api.github.com/users/dieptran00888/orgs","repos_url":"https://api.github.com/users/dieptran00888/repos","events_url":"https://api.github.com/users/dieptran00888/events{/privacy}","received_events_url":"https://api.github.com/users/dieptran00888/received_events","type":"User","site_admin":false},"repo":{"id":74436446,"name":"fels_215","full_name":"dieptran00888/fels_215","owner":{"login":"dieptran00888","id":17880912,"avatar_url":"https://avatars.githubusercontent.com/u/17880912?v=3","gravatar_id":"","url":"https://api.github.com/users/dieptran00888","html_url":"https://github.com/dieptran00888","followers_url":"https://api.github.com/users/dieptran00888/followers","following_url":"https://api.github.com/users/dieptran00888/following{/other_user}","gists_url":"https://api.github.com/users/dieptran00888/gists{/gist_id}","starred_url":"https://api.github.com/users/dieptran00888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieptran00888/subscriptions","organizations_url":"https://api.github.com/users/dieptran00888/orgs","repos_url":"https://api.github.com/users/dieptran00888/repos","events_url":"https://api.github.com/users/dieptran00888/events{/privacy}","received_events_url":"https://api.github.com/users/dieptran00888/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dieptran00888/fels_215","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/dieptran00888/fels_215","forks_url":"https://api.github.com/repos/dieptran00888/fels_215/forks","keys_url":"https://api.github.com/repos/dieptran00888/fels_215/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dieptran00888/fels_215/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dieptran00888/fels_215/teams","hooks_url":"https://api.github.com/repos/dieptran00888/fels_215/hooks","issue_events_url":"https://api.github.com/repos/dieptran00888/fels_215/issues/events{/number}","events_url":"https://api.github.com/repos/dieptran00888/fels_215/events","assignees_url":"https://api.github.com/repos/dieptran00888/fels_215/assignees{/user}","branches_url":"https://api.github.com/repos/dieptran00888/fels_215/branches{/branch}","tags_url":"https://api.github.com/repos/dieptran00888/fels_215/tags","blobs_url":"https://api.github.com/repos/dieptran00888/fels_215/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dieptran00888/fels_215/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dieptran00888/fels_215/git/refs{/sha}","trees_url":"https://api.github.com/repos/dieptran00888/fels_215/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dieptran00888/fels_215/statuses/{sha}","languages_url":"https://api.github.com/repos/dieptran00888/fels_215/languages","stargazers_url":"https://api.github.com/repos/dieptran00888/fels_215/stargazers","contributors_url":"https://api.github.com/repos/dieptran00888/fels_215/contributors","subscribers_url":"https://api.github.com/repos/dieptran00888/fels_215/subscribers","subscription_url":"https://api.github.com/repos/dieptran00888/fels_215/subscription","commits_url":"https://api.github.com/repos/dieptran00888/fels_215/commits{/sha}","git_commits_url":"https://api.github.com/repos/dieptran00888/fels_215/git/commits{/sha}","comments_url":"https://api.github.com/repos/dieptran00888/fels_215/comments{/number}","issue_comment_url":"https://api.github.com/repos/dieptran00888/fels_215/issues/comments{/number}","contents_url":"https://api.github.com/repos/dieptran00888/fels_215/contents/{+path}","compare_url":"https://api.github.com/repos/dieptran00888/fels_215/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dieptran00888/fels_215/merges","archive_url":"https://api.github.com/repos/dieptran00888/fels_215/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dieptran00888/fels_215/downloads","issues_url":"https://api.github.com/repos/dieptran00888/fels_215/issues{/number}","pulls_url":"https://api.github.com/repos/dieptran00888/fels_215/pulls{/number}","milestones_url":"https://api.github.com/repos/dieptran00888/fels_215/milestones{/number}","notifications_url":"https://api.github.com/repos/dieptran00888/fels_215/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dieptran00888/fels_215/labels{/name}","releases_url":"https://api.github.com/repos/dieptran00888/fels_215/releases{/id}","deployments_url":"https://api.github.com/repos/dieptran00888/fels_215/deployments","created_at":"2016-11-22T05:08:49Z","updated_at":"2016-11-22T01:12:31Z","pushed_at":"2016-11-28T07:23:33Z","git_url":"git://github.com/dieptran00888/fels_215.git","ssh_url":"git@github.com:dieptran00888/fels_215.git","clone_url":"https://github.com/dieptran00888/fels_215.git","svn_url":"https://github.com/dieptran00888/fels_215","homepage":null,"size":547,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"0dd3b4cbade4a818a901d6c4c5419f857518c7f0","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":74420711,"name":"fels_215","full_name":"framgia/fels_215","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_215","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_215","forks_url":"https://api.github.com/repos/framgia/fels_215/forks","keys_url":"https://api.github.com/repos/framgia/fels_215/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_215/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_215/teams","hooks_url":"https://api.github.com/repos/framgia/fels_215/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_215/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_215/events","assignees_url":"https://api.github.com/repos/framgia/fels_215/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_215/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_215/tags","blobs_url":"https://api.github.com/repos/framgia/fels_215/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_215/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_215/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_215/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_215/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_215/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_215/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_215/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_215/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_215/subscription","commits_url":"https://api.github.com/repos/framgia/fels_215/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_215/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_215/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_215/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_215/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_215/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_215/merges","archive_url":"https://api.github.com/repos/framgia/fels_215/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_215/downloads","issues_url":"https://api.github.com/repos/framgia/fels_215/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_215/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_215/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_215/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_215/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_215/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_215/deployments","created_at":"2016-11-22T01:12:31Z","updated_at":"2016-11-22T01:12:31Z","pushed_at":"2016-11-28T07:23:33Z","git_url":"git://github.com/framgia/fels_215.git","ssh_url":"git@github.com:framgia/fels_215.git","clone_url":"https://github.com/framgia/fels_215.git","svn_url":"https://github.com/framgia/fels_215","homepage":null,"size":543,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_215/pulls/7"},"html":{"href":"https://github.com/framgia/fels_215/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/fels_215/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/fels_215/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_215/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_215/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_215/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_215/statuses/ffcead2b25dab8aa2a98ab3600108978aeea73ca"}}}}
{"actor":{"display_login":"yeunuthongminh"}}