{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fts_28/pulls/comments/30965860","id":30965860,"diff_hunk":"@@ -0,0 +1,48 @@\n+class CategoriesController < ApplicationController\n+  def index\n+    @categories = Category.paginate page: params[:page], per_page: 20\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] = 'Success'","path":"app/controllers/categories_controller.rb","position":13,"original_position":13,"commit_id":"d03209fe8e08cd6b27a834ae9f1ac69085eedf69","original_commit_id":"d03209fe8e08cd6b27a834ae9f1ac69085eedf69","user":{"login":"nguyenngoctruong","id":11971802,"avatar_url":"https://avatars.githubusercontent.com/u/11971802?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenngoctruong","html_url":"https://github.com/nguyenngoctruong","followers_url":"https://api.github.com/users/nguyenngoctruong/followers","following_url":"https://api.github.com/users/nguyenngoctruong/following{/other_user}","gists_url":"https://api.github.com/users/nguyenngoctruong/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenngoctruong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenngoctruong/subscriptions","organizations_url":"https://api.github.com/users/nguyenngoctruong/orgs","repos_url":"https://api.github.com/users/nguyenngoctruong/repos","events_url":"https://api.github.com/users/nguyenngoctruong/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenngoctruong/received_events","type":"User","site_admin":false},"body":"change (') to (\")","created_at":"2015-05-25T07:14:09Z","updated_at":"2015-05-25T07:14:09Z","html_url":"https://github.com/framgia/fts_28/pull/9#discussion_r30965860","pull_request_url":"https://api.github.com/repos/framgia/fts_28/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_28/pulls/comments/30965860"},"html":{"href":"https://github.com/framgia/fts_28/pull/9#discussion_r30965860"},"pull_request":{"href":"https://api.github.com/repos/framgia/fts_28/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fts_28/pulls/9","id":36121056,"html_url":"https://github.com/framgia/fts_28/pull/9","diff_url":"https://github.com/framgia/fts_28/pull/9.diff","patch_url":"https://github.com/framgia/fts_28/pull/9.patch","issue_url":"https://api.github.com/repos/framgia/fts_28/issues/9","number":9,"state":"open","locked":false,"title":"Categories","user":{"login":"brokenheart1712","id":11383032,"avatar_url":"https://avatars.githubusercontent.com/u/11383032?v=3","gravatar_id":"","url":"https://api.github.com/users/brokenheart1712","html_url":"https://github.com/brokenheart1712","followers_url":"https://api.github.com/users/brokenheart1712/followers","following_url":"https://api.github.com/users/brokenheart1712/following{/other_user}","gists_url":"https://api.github.com/users/brokenheart1712/gists{/gist_id}","starred_url":"https://api.github.com/users/brokenheart1712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brokenheart1712/subscriptions","organizations_url":"https://api.github.com/users/brokenheart1712/orgs","repos_url":"https://api.github.com/users/brokenheart1712/repos","events_url":"https://api.github.com/users/brokenheart1712/events{/privacy}","received_events_url":"https://api.github.com/users/brokenheart1712/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-25T07:06:07Z","updated_at":"2015-05-25T07:14:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8910ad697e84f0c8ed91f4db37adb1b8e3e2787a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fts_28/pulls/9/commits","review_comments_url":"https://api.github.com/repos/framgia/fts_28/pulls/9/comments","review_comment_url":"https://api.github.com/repos/framgia/fts_28/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fts_28/issues/9/comments","statuses_url":"https://api.github.com/repos/framgia/fts_28/statuses/d03209fe8e08cd6b27a834ae9f1ac69085eedf69","head":{"label":"brokenheart1712:categories","ref":"categories","sha":"d03209fe8e08cd6b27a834ae9f1ac69085eedf69","user":{"login":"brokenheart1712","id":11383032,"avatar_url":"https://avatars.githubusercontent.com/u/11383032?v=3","gravatar_id":"","url":"https://api.github.com/users/brokenheart1712","html_url":"https://github.com/brokenheart1712","followers_url":"https://api.github.com/users/brokenheart1712/followers","following_url":"https://api.github.com/users/brokenheart1712/following{/other_user}","gists_url":"https://api.github.com/users/brokenheart1712/gists{/gist_id}","starred_url":"https://api.github.com/users/brokenheart1712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brokenheart1712/subscriptions","organizations_url":"https://api.github.com/users/brokenheart1712/orgs","repos_url":"https://api.github.com/users/brokenheart1712/repos","events_url":"https://api.github.com/users/brokenheart1712/events{/privacy}","received_events_url":"https://api.github.com/users/brokenheart1712/received_events","type":"User","site_admin":false},"repo":{"id":36048116,"name":"fts_28","full_name":"brokenheart1712/fts_28","owner":{"login":"brokenheart1712","id":11383032,"avatar_url":"https://avatars.githubusercontent.com/u/11383032?v=3","gravatar_id":"","url":"https://api.github.com/users/brokenheart1712","html_url":"https://github.com/brokenheart1712","followers_url":"https://api.github.com/users/brokenheart1712/followers","following_url":"https://api.github.com/users/brokenheart1712/following{/other_user}","gists_url":"https://api.github.com/users/brokenheart1712/gists{/gist_id}","starred_url":"https://api.github.com/users/brokenheart1712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brokenheart1712/subscriptions","organizations_url":"https://api.github.com/users/brokenheart1712/orgs","repos_url":"https://api.github.com/users/brokenheart1712/repos","events_url":"https://api.github.com/users/brokenheart1712/events{/privacy}","received_events_url":"https://api.github.com/users/brokenheart1712/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brokenheart1712/fts_28","description":"Framgia Test System (training)","fork":true,"url":"https://api.github.com/repos/brokenheart1712/fts_28","forks_url":"https://api.github.com/repos/brokenheart1712/fts_28/forks","keys_url":"https://api.github.com/repos/brokenheart1712/fts_28/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brokenheart1712/fts_28/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brokenheart1712/fts_28/teams","hooks_url":"https://api.github.com/repos/brokenheart1712/fts_28/hooks","issue_events_url":"https://api.github.com/repos/brokenheart1712/fts_28/issues/events{/number}","events_url":"https://api.github.com/repos/brokenheart1712/fts_28/events","assignees_url":"https://api.github.com/repos/brokenheart1712/fts_28/assignees{/user}","branches_url":"https://api.github.com/repos/brokenheart1712/fts_28/branches{/branch}","tags_url":"https://api.github.com/repos/brokenheart1712/fts_28/tags","blobs_url":"https://api.github.com/repos/brokenheart1712/fts_28/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brokenheart1712/fts_28/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brokenheart1712/fts_28/git/refs{/sha}","trees_url":"https://api.github.com/repos/brokenheart1712/fts_28/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brokenheart1712/fts_28/statuses/{sha}","languages_url":"https://api.github.com/repos/brokenheart1712/fts_28/languages","stargazers_url":"https://api.github.com/repos/brokenheart1712/fts_28/stargazers","contributors_url":"https://api.github.com/repos/brokenheart1712/fts_28/contributors","subscribers_url":"https://api.github.com/repos/brokenheart1712/fts_28/subscribers","subscription_url":"https://api.github.com/repos/brokenheart1712/fts_28/subscription","commits_url":"https://api.github.com/repos/brokenheart1712/fts_28/commits{/sha}","git_commits_url":"https://api.github.com/repos/brokenheart1712/fts_28/git/commits{/sha}","comments_url":"https://api.github.com/repos/brokenheart1712/fts_28/comments{/number}","issue_comment_url":"https://api.github.com/repos/brokenheart1712/fts_28/issues/comments{/number}","contents_url":"https://api.github.com/repos/brokenheart1712/fts_28/contents/{+path}","compare_url":"https://api.github.com/repos/brokenheart1712/fts_28/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brokenheart1712/fts_28/merges","archive_url":"https://api.github.com/repos/brokenheart1712/fts_28/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brokenheart1712/fts_28/downloads","issues_url":"https://api.github.com/repos/brokenheart1712/fts_28/issues{/number}","pulls_url":"https://api.github.com/repos/brokenheart1712/fts_28/pulls{/number}","milestones_url":"https://api.github.com/repos/brokenheart1712/fts_28/milestones{/number}","notifications_url":"https://api.github.com/repos/brokenheart1712/fts_28/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brokenheart1712/fts_28/labels{/name}","releases_url":"https://api.github.com/repos/brokenheart1712/fts_28/releases{/id}","created_at":"2015-05-22T02:31:32Z","updated_at":"2015-05-22T01:52:05Z","pushed_at":"2015-05-25T07:11:16Z","git_url":"git://github.com/brokenheart1712/fts_28.git","ssh_url":"git@github.com:brokenheart1712/fts_28.git","clone_url":"https://github.com/brokenheart1712/fts_28.git","svn_url":"https://github.com/brokenheart1712/fts_28","homepage":null,"size":232,"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":"95811d05cc201b604eb628373ee8f6907f56fd24","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":36046558,"name":"fts_28","full_name":"framgia/fts_28","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_28","description":"Framgia Test System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fts_28","forks_url":"https://api.github.com/repos/framgia/fts_28/forks","keys_url":"https://api.github.com/repos/framgia/fts_28/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fts_28/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fts_28/teams","hooks_url":"https://api.github.com/repos/framgia/fts_28/hooks","issue_events_url":"https://api.github.com/repos/framgia/fts_28/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fts_28/events","assignees_url":"https://api.github.com/repos/framgia/fts_28/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fts_28/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fts_28/tags","blobs_url":"https://api.github.com/repos/framgia/fts_28/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fts_28/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fts_28/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fts_28/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fts_28/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fts_28/languages","stargazers_url":"https://api.github.com/repos/framgia/fts_28/stargazers","contributors_url":"https://api.github.com/repos/framgia/fts_28/contributors","subscribers_url":"https://api.github.com/repos/framgia/fts_28/subscribers","subscription_url":"https://api.github.com/repos/framgia/fts_28/subscription","commits_url":"https://api.github.com/repos/framgia/fts_28/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fts_28/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fts_28/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fts_28/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fts_28/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fts_28/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fts_28/merges","archive_url":"https://api.github.com/repos/framgia/fts_28/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fts_28/downloads","issues_url":"https://api.github.com/repos/framgia/fts_28/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fts_28/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fts_28/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fts_28/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fts_28/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fts_28/releases{/id}","created_at":"2015-05-22T01:52:05Z","updated_at":"2015-05-22T01:52:05Z","pushed_at":"2015-05-25T07:11:16Z","git_url":"git://github.com/framgia/fts_28.git","ssh_url":"git@github.com:framgia/fts_28.git","clone_url":"https://github.com/framgia/fts_28.git","svn_url":"https://github.com/framgia/fts_28","homepage":null,"size":319,"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":6,"forks":2,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fts_28/pulls/9"},"html":{"href":"https://github.com/framgia/fts_28/pull/9"},"issue":{"href":"https://api.github.com/repos/framgia/fts_28/issues/9"},"comments":{"href":"https://api.github.com/repos/framgia/fts_28/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fts_28/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fts_28/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fts_28/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fts_28/statuses/d03209fe8e08cd6b27a834ae9f1ac69085eedf69"}}}}