{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_135/pulls/comments/65338670","id":65338670,"diff_hunk":"@@ -1,5 +1,26 @@\n+\n class Admin::CategoriesController < ApplicationController\n   def index\n     @categories = Category.paginate page: params[:page]\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] = I18n.t \"controllers.admin.messages\"\n+      redirect_to [:admin, @category]","path":"app/controllers/admin/categories_controller.rb","position":15,"original_position":15,"commit_id":"521d831efe3ab741fed3d5cbeef839a36effd2a8","original_commit_id":"521d831efe3ab741fed3d5cbeef839a36effd2a8","user":{"login":"thangtx88","id":18256324,"avatar_url":"https://avatars.githubusercontent.com/u/18256324?v=3","gravatar_id":"","url":"https://api.github.com/users/thangtx88","html_url":"https://github.com/thangtx88","followers_url":"https://api.github.com/users/thangtx88/followers","following_url":"https://api.github.com/users/thangtx88/following{/other_user}","gists_url":"https://api.github.com/users/thangtx88/gists{/gist_id}","starred_url":"https://api.github.com/users/thangtx88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thangtx88/subscriptions","organizations_url":"https://api.github.com/users/thangtx88/orgs","repos_url":"https://api.github.com/users/thangtx88/repos","events_url":"https://api.github.com/users/thangtx88/events{/privacy}","received_events_url":"https://api.github.com/users/thangtx88/received_events","type":"User","site_admin":false},"body":"tham khảo pull của Tuyền nhé","created_at":"2016-06-01T10:43:56Z","updated_at":"2016-06-01T10:43:56Z","html_url":"https://github.com/framgia/fels_135/pull/8#discussion_r65338670","pull_request_url":"https://api.github.com/repos/framgia/fels_135/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_135/pulls/comments/65338670"},"html":{"href":"https://github.com/framgia/fels_135/pull/8#discussion_r65338670"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_135/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_135/pulls/8","id":72122525,"html_url":"https://github.com/framgia/fels_135/pull/8","diff_url":"https://github.com/framgia/fels_135/pull/8.diff","patch_url":"https://github.com/framgia/fels_135/pull/8.patch","issue_url":"https://api.github.com/repos/framgia/fels_135/issues/8","number":8,"state":"open","locked":false,"title":"add-categories","user":{"login":"VuDinhHao","id":17917413,"avatar_url":"https://avatars.githubusercontent.com/u/17917413?v=3","gravatar_id":"","url":"https://api.github.com/users/VuDinhHao","html_url":"https://github.com/VuDinhHao","followers_url":"https://api.github.com/users/VuDinhHao/followers","following_url":"https://api.github.com/users/VuDinhHao/following{/other_user}","gists_url":"https://api.github.com/users/VuDinhHao/gists{/gist_id}","starred_url":"https://api.github.com/users/VuDinhHao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuDinhHao/subscriptions","organizations_url":"https://api.github.com/users/VuDinhHao/orgs","repos_url":"https://api.github.com/users/VuDinhHao/repos","events_url":"https://api.github.com/users/VuDinhHao/events{/privacy}","received_events_url":"https://api.github.com/users/VuDinhHao/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-01T04:51:32Z","updated_at":"2016-06-01T10:43:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7263fdbc11ebc79c26cac7005971d2f53ad0056b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_135/pulls/8/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_135/pulls/8/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_135/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_135/issues/8/comments","statuses_url":"https://api.github.com/repos/framgia/fels_135/statuses/521d831efe3ab741fed3d5cbeef839a36effd2a8","head":{"label":"VuDinhHao:add-categories","ref":"add-categories","sha":"521d831efe3ab741fed3d5cbeef839a36effd2a8","user":{"login":"VuDinhHao","id":17917413,"avatar_url":"https://avatars.githubusercontent.com/u/17917413?v=3","gravatar_id":"","url":"https://api.github.com/users/VuDinhHao","html_url":"https://github.com/VuDinhHao","followers_url":"https://api.github.com/users/VuDinhHao/followers","following_url":"https://api.github.com/users/VuDinhHao/following{/other_user}","gists_url":"https://api.github.com/users/VuDinhHao/gists{/gist_id}","starred_url":"https://api.github.com/users/VuDinhHao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuDinhHao/subscriptions","organizations_url":"https://api.github.com/users/VuDinhHao/orgs","repos_url":"https://api.github.com/users/VuDinhHao/repos","events_url":"https://api.github.com/users/VuDinhHao/events{/privacy}","received_events_url":"https://api.github.com/users/VuDinhHao/received_events","type":"User","site_admin":false},"repo":{"id":59938504,"name":"fels_135","full_name":"VuDinhHao/fels_135","owner":{"login":"VuDinhHao","id":17917413,"avatar_url":"https://avatars.githubusercontent.com/u/17917413?v=3","gravatar_id":"","url":"https://api.github.com/users/VuDinhHao","html_url":"https://github.com/VuDinhHao","followers_url":"https://api.github.com/users/VuDinhHao/followers","following_url":"https://api.github.com/users/VuDinhHao/following{/other_user}","gists_url":"https://api.github.com/users/VuDinhHao/gists{/gist_id}","starred_url":"https://api.github.com/users/VuDinhHao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuDinhHao/subscriptions","organizations_url":"https://api.github.com/users/VuDinhHao/orgs","repos_url":"https://api.github.com/users/VuDinhHao/repos","events_url":"https://api.github.com/users/VuDinhHao/events{/privacy}","received_events_url":"https://api.github.com/users/VuDinhHao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VuDinhHao/fels_135","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/VuDinhHao/fels_135","forks_url":"https://api.github.com/repos/VuDinhHao/fels_135/forks","keys_url":"https://api.github.com/repos/VuDinhHao/fels_135/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VuDinhHao/fels_135/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VuDinhHao/fels_135/teams","hooks_url":"https://api.github.com/repos/VuDinhHao/fels_135/hooks","issue_events_url":"https://api.github.com/repos/VuDinhHao/fels_135/issues/events{/number}","events_url":"https://api.github.com/repos/VuDinhHao/fels_135/events","assignees_url":"https://api.github.com/repos/VuDinhHao/fels_135/assignees{/user}","branches_url":"https://api.github.com/repos/VuDinhHao/fels_135/branches{/branch}","tags_url":"https://api.github.com/repos/VuDinhHao/fels_135/tags","blobs_url":"https://api.github.com/repos/VuDinhHao/fels_135/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VuDinhHao/fels_135/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VuDinhHao/fels_135/git/refs{/sha}","trees_url":"https://api.github.com/repos/VuDinhHao/fels_135/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VuDinhHao/fels_135/statuses/{sha}","languages_url":"https://api.github.com/repos/VuDinhHao/fels_135/languages","stargazers_url":"https://api.github.com/repos/VuDinhHao/fels_135/stargazers","contributors_url":"https://api.github.com/repos/VuDinhHao/fels_135/contributors","subscribers_url":"https://api.github.com/repos/VuDinhHao/fels_135/subscribers","subscription_url":"https://api.github.com/repos/VuDinhHao/fels_135/subscription","commits_url":"https://api.github.com/repos/VuDinhHao/fels_135/commits{/sha}","git_commits_url":"https://api.github.com/repos/VuDinhHao/fels_135/git/commits{/sha}","comments_url":"https://api.github.com/repos/VuDinhHao/fels_135/comments{/number}","issue_comment_url":"https://api.github.com/repos/VuDinhHao/fels_135/issues/comments{/number}","contents_url":"https://api.github.com/repos/VuDinhHao/fels_135/contents/{+path}","compare_url":"https://api.github.com/repos/VuDinhHao/fels_135/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VuDinhHao/fels_135/merges","archive_url":"https://api.github.com/repos/VuDinhHao/fels_135/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VuDinhHao/fels_135/downloads","issues_url":"https://api.github.com/repos/VuDinhHao/fels_135/issues{/number}","pulls_url":"https://api.github.com/repos/VuDinhHao/fels_135/pulls{/number}","milestones_url":"https://api.github.com/repos/VuDinhHao/fels_135/milestones{/number}","notifications_url":"https://api.github.com/repos/VuDinhHao/fels_135/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VuDinhHao/fels_135/labels{/name}","releases_url":"https://api.github.com/repos/VuDinhHao/fels_135/releases{/id}","deployments_url":"https://api.github.com/repos/VuDinhHao/fels_135/deployments","created_at":"2016-05-29T10:53:45Z","updated_at":"2016-05-10T07:29:48Z","pushed_at":"2016-06-01T09:40:55Z","git_url":"git://github.com/VuDinhHao/fels_135.git","ssh_url":"git@github.com:VuDinhHao/fels_135.git","clone_url":"https://github.com/VuDinhHao/fels_135.git","svn_url":"https://github.com/VuDinhHao/fels_135","homepage":null,"size":42,"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":"c532f2f14e5fa327cfb5cc65dc3e92df53cee903","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":58439348,"name":"fels_135","full_name":"framgia/fels_135","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_135","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_135","forks_url":"https://api.github.com/repos/framgia/fels_135/forks","keys_url":"https://api.github.com/repos/framgia/fels_135/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_135/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_135/teams","hooks_url":"https://api.github.com/repos/framgia/fels_135/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_135/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_135/events","assignees_url":"https://api.github.com/repos/framgia/fels_135/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_135/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_135/tags","blobs_url":"https://api.github.com/repos/framgia/fels_135/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_135/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_135/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_135/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_135/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_135/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_135/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_135/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_135/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_135/subscription","commits_url":"https://api.github.com/repos/framgia/fels_135/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_135/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_135/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_135/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_135/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_135/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_135/merges","archive_url":"https://api.github.com/repos/framgia/fels_135/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_135/downloads","issues_url":"https://api.github.com/repos/framgia/fels_135/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_135/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_135/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_135/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_135/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_135/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_135/deployments","created_at":"2016-05-10T07:29:48Z","updated_at":"2016-05-10T07:29:48Z","pushed_at":"2016-06-01T10:25:38Z","git_url":"git://github.com/framgia/fels_135.git","ssh_url":"git@github.com:framgia/fels_135.git","clone_url":"https://github.com/framgia/fels_135.git","svn_url":"https://github.com/framgia/fels_135","homepage":null,"size":49,"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_135/pulls/8"},"html":{"href":"https://github.com/framgia/fels_135/pull/8"},"issue":{"href":"https://api.github.com/repos/framgia/fels_135/issues/8"},"comments":{"href":"https://api.github.com/repos/framgia/fels_135/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_135/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_135/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_135/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_135/statuses/521d831efe3ab741fed3d5cbeef839a36effd2a8"}}}}
{"actor":{"display_login":"thangtx88"}}