{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fts_32/pulls/comments/32704644","id":32704644,"diff_hunk":"@@ -0,0 +1,43 @@\n+class Admin::CategoriesController < ApplicationController\n+  before_action :load_category\n+  before_action :authenticate_user!\n+  before_action :admin_user\n+\n+  def index\n+  end\n+\n+  def new\n+    @category = Category.new\n+  end\n+\n+  def create\n+    @category = Category.new params_category\n+    @category.save\n+  end\n+\n+  def edit\n+    @category = Category.find params[:id]\n+  end\n+\n+  def update\n+    @category = Category.find params[:id]\n+    @category.update_attributes params_category","path":"app/controllers/admin/categories_controller.rb","position":24,"original_position":24,"commit_id":"77bc7a6d87febf76f92631127d6dba032384ed0e","original_commit_id":"dbf6c067ce2a7ea173cb2e2f7e1de6b8041d51af","user":{"login":"RathanakSreang","id":12246079,"avatar_url":"https://avatars.githubusercontent.com/u/12246079?v=3","gravatar_id":"","url":"https://api.github.com/users/RathanakSreang","html_url":"https://github.com/RathanakSreang","followers_url":"https://api.github.com/users/RathanakSreang/followers","following_url":"https://api.github.com/users/RathanakSreang/following{/other_user}","gists_url":"https://api.github.com/users/RathanakSreang/gists{/gist_id}","starred_url":"https://api.github.com/users/RathanakSreang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RathanakSreang/subscriptions","organizations_url":"https://api.github.com/users/RathanakSreang/orgs","repos_url":"https://api.github.com/users/RathanakSreang/repos","events_url":"https://api.github.com/users/RathanakSreang/events{/privacy}","received_events_url":"https://api.github.com/users/RathanakSreang/received_events","type":"User","site_admin":false},"body":"if update fail????","created_at":"2015-06-18T07:28:14Z","updated_at":"2015-06-18T07:28:14Z","html_url":"https://github.com/framgia/fts_32/pull/5#discussion_r32704644","pull_request_url":"https://api.github.com/repos/framgia/fts_32/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/comments/32704644"},"html":{"href":"https://github.com/framgia/fts_32/pull/5#discussion_r32704644"},"pull_request":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fts_32/pulls/5","id":37974130,"html_url":"https://github.com/framgia/fts_32/pull/5","diff_url":"https://github.com/framgia/fts_32/pull/5.diff","patch_url":"https://github.com/framgia/fts_32/pull/5.patch","issue_url":"https://api.github.com/repos/framgia/fts_32/issues/5","number":5,"state":"open","locked":false,"title":"Category admin","user":{"login":"NgengChhengkim","id":9549149,"avatar_url":"https://avatars.githubusercontent.com/u/9549149?v=3","gravatar_id":"","url":"https://api.github.com/users/NgengChhengkim","html_url":"https://github.com/NgengChhengkim","followers_url":"https://api.github.com/users/NgengChhengkim/followers","following_url":"https://api.github.com/users/NgengChhengkim/following{/other_user}","gists_url":"https://api.github.com/users/NgengChhengkim/gists{/gist_id}","starred_url":"https://api.github.com/users/NgengChhengkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgengChhengkim/subscriptions","organizations_url":"https://api.github.com/users/NgengChhengkim/orgs","repos_url":"https://api.github.com/users/NgengChhengkim/repos","events_url":"https://api.github.com/users/NgengChhengkim/events{/privacy}","received_events_url":"https://api.github.com/users/NgengChhengkim/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-18T06:07:39Z","updated_at":"2015-06-18T07:28:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b219e7a91404f0a047daa4f54f1f3b0d22b536b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fts_32/pulls/5/commits","review_comments_url":"https://api.github.com/repos/framgia/fts_32/pulls/5/comments","review_comment_url":"https://api.github.com/repos/framgia/fts_32/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fts_32/issues/5/comments","statuses_url":"https://api.github.com/repos/framgia/fts_32/statuses/77bc7a6d87febf76f92631127d6dba032384ed0e","head":{"label":"NgengChhengkim:category-admin","ref":"category-admin","sha":"77bc7a6d87febf76f92631127d6dba032384ed0e","user":{"login":"NgengChhengkim","id":9549149,"avatar_url":"https://avatars.githubusercontent.com/u/9549149?v=3","gravatar_id":"","url":"https://api.github.com/users/NgengChhengkim","html_url":"https://github.com/NgengChhengkim","followers_url":"https://api.github.com/users/NgengChhengkim/followers","following_url":"https://api.github.com/users/NgengChhengkim/following{/other_user}","gists_url":"https://api.github.com/users/NgengChhengkim/gists{/gist_id}","starred_url":"https://api.github.com/users/NgengChhengkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgengChhengkim/subscriptions","organizations_url":"https://api.github.com/users/NgengChhengkim/orgs","repos_url":"https://api.github.com/users/NgengChhengkim/repos","events_url":"https://api.github.com/users/NgengChhengkim/events{/privacy}","received_events_url":"https://api.github.com/users/NgengChhengkim/received_events","type":"User","site_admin":false},"repo":{"id":37565856,"name":"fts_32","full_name":"NgengChhengkim/fts_32","owner":{"login":"NgengChhengkim","id":9549149,"avatar_url":"https://avatars.githubusercontent.com/u/9549149?v=3","gravatar_id":"","url":"https://api.github.com/users/NgengChhengkim","html_url":"https://github.com/NgengChhengkim","followers_url":"https://api.github.com/users/NgengChhengkim/followers","following_url":"https://api.github.com/users/NgengChhengkim/following{/other_user}","gists_url":"https://api.github.com/users/NgengChhengkim/gists{/gist_id}","starred_url":"https://api.github.com/users/NgengChhengkim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgengChhengkim/subscriptions","organizations_url":"https://api.github.com/users/NgengChhengkim/orgs","repos_url":"https://api.github.com/users/NgengChhengkim/repos","events_url":"https://api.github.com/users/NgengChhengkim/events{/privacy}","received_events_url":"https://api.github.com/users/NgengChhengkim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NgengChhengkim/fts_32","description":"Framgia Test System (training)","fork":true,"url":"https://api.github.com/repos/NgengChhengkim/fts_32","forks_url":"https://api.github.com/repos/NgengChhengkim/fts_32/forks","keys_url":"https://api.github.com/repos/NgengChhengkim/fts_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NgengChhengkim/fts_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NgengChhengkim/fts_32/teams","hooks_url":"https://api.github.com/repos/NgengChhengkim/fts_32/hooks","issue_events_url":"https://api.github.com/repos/NgengChhengkim/fts_32/issues/events{/number}","events_url":"https://api.github.com/repos/NgengChhengkim/fts_32/events","assignees_url":"https://api.github.com/repos/NgengChhengkim/fts_32/assignees{/user}","branches_url":"https://api.github.com/repos/NgengChhengkim/fts_32/branches{/branch}","tags_url":"https://api.github.com/repos/NgengChhengkim/fts_32/tags","blobs_url":"https://api.github.com/repos/NgengChhengkim/fts_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NgengChhengkim/fts_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NgengChhengkim/fts_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/NgengChhengkim/fts_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NgengChhengkim/fts_32/statuses/{sha}","languages_url":"https://api.github.com/repos/NgengChhengkim/fts_32/languages","stargazers_url":"https://api.github.com/repos/NgengChhengkim/fts_32/stargazers","contributors_url":"https://api.github.com/repos/NgengChhengkim/fts_32/contributors","subscribers_url":"https://api.github.com/repos/NgengChhengkim/fts_32/subscribers","subscription_url":"https://api.github.com/repos/NgengChhengkim/fts_32/subscription","commits_url":"https://api.github.com/repos/NgengChhengkim/fts_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/NgengChhengkim/fts_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/NgengChhengkim/fts_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/NgengChhengkim/fts_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/NgengChhengkim/fts_32/contents/{+path}","compare_url":"https://api.github.com/repos/NgengChhengkim/fts_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NgengChhengkim/fts_32/merges","archive_url":"https://api.github.com/repos/NgengChhengkim/fts_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NgengChhengkim/fts_32/downloads","issues_url":"https://api.github.com/repos/NgengChhengkim/fts_32/issues{/number}","pulls_url":"https://api.github.com/repos/NgengChhengkim/fts_32/pulls{/number}","milestones_url":"https://api.github.com/repos/NgengChhengkim/fts_32/milestones{/number}","notifications_url":"https://api.github.com/repos/NgengChhengkim/fts_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NgengChhengkim/fts_32/labels{/name}","releases_url":"https://api.github.com/repos/NgengChhengkim/fts_32/releases{/id}","created_at":"2015-06-17T01:39:10Z","updated_at":"2015-06-16T07:39:07Z","pushed_at":"2015-06-18T07:26:04Z","git_url":"git://github.com/NgengChhengkim/fts_32.git","ssh_url":"git@github.com:NgengChhengkim/fts_32.git","clone_url":"https://github.com/NgengChhengkim/fts_32.git","svn_url":"https://github.com/NgengChhengkim/fts_32","homepage":null,"size":171,"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":"eae4bf3efd6a66864c34ccfe6778675f1df02412","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":37515539,"name":"fts_32","full_name":"framgia/fts_32","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/fts_32","description":"Framgia Test System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fts_32","forks_url":"https://api.github.com/repos/framgia/fts_32/forks","keys_url":"https://api.github.com/repos/framgia/fts_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fts_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fts_32/teams","hooks_url":"https://api.github.com/repos/framgia/fts_32/hooks","issue_events_url":"https://api.github.com/repos/framgia/fts_32/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fts_32/events","assignees_url":"https://api.github.com/repos/framgia/fts_32/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fts_32/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fts_32/tags","blobs_url":"https://api.github.com/repos/framgia/fts_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fts_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fts_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fts_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fts_32/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fts_32/languages","stargazers_url":"https://api.github.com/repos/framgia/fts_32/stargazers","contributors_url":"https://api.github.com/repos/framgia/fts_32/contributors","subscribers_url":"https://api.github.com/repos/framgia/fts_32/subscribers","subscription_url":"https://api.github.com/repos/framgia/fts_32/subscription","commits_url":"https://api.github.com/repos/framgia/fts_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fts_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fts_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fts_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fts_32/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fts_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fts_32/merges","archive_url":"https://api.github.com/repos/framgia/fts_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fts_32/downloads","issues_url":"https://api.github.com/repos/framgia/fts_32/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fts_32/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fts_32/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fts_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fts_32/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fts_32/releases{/id}","created_at":"2015-06-16T07:39:07Z","updated_at":"2015-06-16T07:39:07Z","pushed_at":"2015-06-18T07:26:05Z","git_url":"git://github.com/framgia/fts_32.git","ssh_url":"git@github.com:framgia/fts_32.git","clone_url":"https://github.com/framgia/fts_32.git","svn_url":"https://github.com/framgia/fts_32","homepage":null,"size":310,"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/fts_32/pulls/5"},"html":{"href":"https://github.com/framgia/fts_32/pull/5"},"issue":{"href":"https://api.github.com/repos/framgia/fts_32/issues/5"},"comments":{"href":"https://api.github.com/repos/framgia/fts_32/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fts_32/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fts_32/statuses/77bc7a6d87febf76f92631127d6dba032384ed0e"}}}}