{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_198/pulls/comments/83609839","pull_request_review_id":4441318,"id":83609839,"diff_hunk":"@@ -0,0 +1,44 @@\n+class Admin::CategoriesController < ApplicationController\n+  before_action :logged_in_user\n+  before_action :verify_admin\n+  before_action :find_category, only: :destroy\n+\n+  def index\n+    @categories = Category.paginate page: params[:page],\n+      per_page: Settings.per_page_categories\n+  end\n+\n+  def new\n+    @category = Category.new\n+  end\n+\n+  def create\n+    @category = Category.new category_params\n+    if @category.save\n+      flash[:success] = t \"flash.category_created\"\n+      redirect_to admin_categories_path","path":"app/controllers/admin/categories_controller.rb","position":19,"original_position":19,"commit_id":"d9bb987a3b2cbbde075ea7161b5a0a7c957bc80c","original_commit_id":"d9bb987a3b2cbbde075ea7161b5a0a7c957bc80c","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":"tạo được nên trả về chính nó nhé. nên thôi, sửa không thì tùy","created_at":"2016-10-17T09:47:11Z","updated_at":"2016-10-17T09:47:13Z","html_url":"https://github.com/framgia/fels_198/pull/6#discussion_r83609839","pull_request_url":"https://api.github.com/repos/framgia/fels_198/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_198/pulls/comments/83609839"},"html":{"href":"https://github.com/framgia/fels_198/pull/6#discussion_r83609839"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_198/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_198/pulls/6","id":89584840,"html_url":"https://github.com/framgia/fels_198/pull/6","diff_url":"https://github.com/framgia/fels_198/pull/6.diff","patch_url":"https://github.com/framgia/fels_198/pull/6.patch","issue_url":"https://api.github.com/repos/framgia/fels_198/issues/6","number":6,"state":"open","locked":false,"title":"Admin create category","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-10-17T09:04:14Z","updated_at":"2016-10-17T09:47:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcb9425875ddea6f0208003b109178a5a6779c88","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_198/pulls/6/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_198/pulls/6/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_198/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_198/issues/6/comments","statuses_url":"https://api.github.com/repos/framgia/fels_198/statuses/d9bb987a3b2cbbde075ea7161b5a0a7c957bc80c","head":{"label":"duongpham910:admin_create_category","ref":"admin_create_category","sha":"d9bb987a3b2cbbde075ea7161b5a0a7c957bc80c","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":70652094,"name":"fels_198","full_name":"duongpham910/fels_198","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/fels_198","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/duongpham910/fels_198","forks_url":"https://api.github.com/repos/duongpham910/fels_198/forks","keys_url":"https://api.github.com/repos/duongpham910/fels_198/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duongpham910/fels_198/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duongpham910/fels_198/teams","hooks_url":"https://api.github.com/repos/duongpham910/fels_198/hooks","issue_events_url":"https://api.github.com/repos/duongpham910/fels_198/issues/events{/number}","events_url":"https://api.github.com/repos/duongpham910/fels_198/events","assignees_url":"https://api.github.com/repos/duongpham910/fels_198/assignees{/user}","branches_url":"https://api.github.com/repos/duongpham910/fels_198/branches{/branch}","tags_url":"https://api.github.com/repos/duongpham910/fels_198/tags","blobs_url":"https://api.github.com/repos/duongpham910/fels_198/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duongpham910/fels_198/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duongpham910/fels_198/git/refs{/sha}","trees_url":"https://api.github.com/repos/duongpham910/fels_198/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duongpham910/fels_198/statuses/{sha}","languages_url":"https://api.github.com/repos/duongpham910/fels_198/languages","stargazers_url":"https://api.github.com/repos/duongpham910/fels_198/stargazers","contributors_url":"https://api.github.com/repos/duongpham910/fels_198/contributors","subscribers_url":"https://api.github.com/repos/duongpham910/fels_198/subscribers","subscription_url":"https://api.github.com/repos/duongpham910/fels_198/subscription","commits_url":"https://api.github.com/repos/duongpham910/fels_198/commits{/sha}","git_commits_url":"https://api.github.com/repos/duongpham910/fels_198/git/commits{/sha}","comments_url":"https://api.github.com/repos/duongpham910/fels_198/comments{/number}","issue_comment_url":"https://api.github.com/repos/duongpham910/fels_198/issues/comments{/number}","contents_url":"https://api.github.com/repos/duongpham910/fels_198/contents/{+path}","compare_url":"https://api.github.com/repos/duongpham910/fels_198/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duongpham910/fels_198/merges","archive_url":"https://api.github.com/repos/duongpham910/fels_198/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duongpham910/fels_198/downloads","issues_url":"https://api.github.com/repos/duongpham910/fels_198/issues{/number}","pulls_url":"https://api.github.com/repos/duongpham910/fels_198/pulls{/number}","milestones_url":"https://api.github.com/repos/duongpham910/fels_198/milestones{/number}","notifications_url":"https://api.github.com/repos/duongpham910/fels_198/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duongpham910/fels_198/labels{/name}","releases_url":"https://api.github.com/repos/duongpham910/fels_198/releases{/id}","deployments_url":"https://api.github.com/repos/duongpham910/fels_198/deployments","created_at":"2016-10-12T01:54:35Z","updated_at":"2016-10-11T06:40:24Z","pushed_at":"2016-10-17T09:31:57Z","git_url":"git://github.com/duongpham910/fels_198.git","ssh_url":"git@github.com:duongpham910/fels_198.git","clone_url":"https://github.com/duongpham910/fels_198.git","svn_url":"https://github.com/duongpham910/fels_198","homepage":null,"size":170,"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":"2f4692387858b7c2373f35bae04e281f2735c39c","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":70563920,"name":"fels_198","full_name":"framgia/fels_198","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_198","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_198","forks_url":"https://api.github.com/repos/framgia/fels_198/forks","keys_url":"https://api.github.com/repos/framgia/fels_198/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_198/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_198/teams","hooks_url":"https://api.github.com/repos/framgia/fels_198/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_198/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_198/events","assignees_url":"https://api.github.com/repos/framgia/fels_198/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_198/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_198/tags","blobs_url":"https://api.github.com/repos/framgia/fels_198/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_198/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_198/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_198/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_198/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_198/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_198/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_198/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_198/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_198/subscription","commits_url":"https://api.github.com/repos/framgia/fels_198/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_198/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_198/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_198/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_198/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_198/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_198/merges","archive_url":"https://api.github.com/repos/framgia/fels_198/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_198/downloads","issues_url":"https://api.github.com/repos/framgia/fels_198/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_198/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_198/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_198/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_198/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_198/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_198/deployments","created_at":"2016-10-11T06:40:24Z","updated_at":"2016-10-11T06:40:24Z","pushed_at":"2016-10-17T09:31:58Z","git_url":"git://github.com/framgia/fels_198.git","ssh_url":"git@github.com:framgia/fels_198.git","clone_url":"https://github.com/framgia/fels_198.git","svn_url":"https://github.com/framgia/fels_198","homepage":null,"size":170,"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":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_198/pulls/6"},"html":{"href":"https://github.com/framgia/fels_198/pull/6"},"issue":{"href":"https://api.github.com/repos/framgia/fels_198/issues/6"},"comments":{"href":"https://api.github.com/repos/framgia/fels_198/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_198/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_198/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_198/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_198/statuses/d9bb987a3b2cbbde075ea7161b5a0a7c957bc80c"}}}}
{"actor":{"display_login":"yeunuthongminh"}}