{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_183/pulls/comments/79546439","id":79546439,"diff_hunk":"@@ -21,15 +21,15 @@\n       <% if @words.any? %>\n         <% @words.each do |word| %>\n         <tr>\n-          <td><%= word.category.name %></td>\n+          <td><%= word.category ? word.category_name : \"\" %></td>","path":"app/views/admin/words/index.html.erb","position":5,"original_position":5,"commit_id":"edc03ee4e89207fc15602c0c56193bf7a99158cb","original_commit_id":"edc03ee4e89207fc15602c0c56193bf7a99158cb","user":{"login":"leanhtuan-framgia","id":20265241,"avatar_url":"https://avatars.githubusercontent.com/u/20265241?v=3","gravatar_id":"","url":"https://api.github.com/users/leanhtuan-framgia","html_url":"https://github.com/leanhtuan-framgia","followers_url":"https://api.github.com/users/leanhtuan-framgia/followers","following_url":"https://api.github.com/users/leanhtuan-framgia/following{/other_user}","gists_url":"https://api.github.com/users/leanhtuan-framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/leanhtuan-framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanhtuan-framgia/subscriptions","organizations_url":"https://api.github.com/users/leanhtuan-framgia/orgs","repos_url":"https://api.github.com/users/leanhtuan-framgia/repos","events_url":"https://api.github.com/users/leanhtuan-framgia/events{/privacy}","received_events_url":"https://api.github.com/users/leanhtuan-framgia/received_events","type":"User","site_admin":false},"body":"có check mà anh, nếu nil thì nó sẽ in ra \" \" ạ còn nếu mà word.category tồn tại thì mới lấy name ạ","created_at":"2016-09-20T07:01:39Z","updated_at":"2016-09-20T07:01:39Z","html_url":"https://github.com/framgia/fels_183/pull/24#discussion_r79546439","pull_request_url":"https://api.github.com/repos/framgia/fels_183/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_183/pulls/comments/79546439"},"html":{"href":"https://github.com/framgia/fels_183/pull/24#discussion_r79546439"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_183/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_183/pulls/24","id":85908741,"html_url":"https://github.com/framgia/fels_183/pull/24","diff_url":"https://github.com/framgia/fels_183/pull/24.diff","patch_url":"https://github.com/framgia/fels_183/pull/24.patch","issue_url":"https://api.github.com/repos/framgia/fels_183/issues/24","number":24,"state":"open","locked":false,"title":"Fix admin manage word & delete category","user":{"login":"leanhtuan-framgia","id":20265241,"avatar_url":"https://avatars.githubusercontent.com/u/20265241?v=3","gravatar_id":"","url":"https://api.github.com/users/leanhtuan-framgia","html_url":"https://github.com/leanhtuan-framgia","followers_url":"https://api.github.com/users/leanhtuan-framgia/followers","following_url":"https://api.github.com/users/leanhtuan-framgia/following{/other_user}","gists_url":"https://api.github.com/users/leanhtuan-framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/leanhtuan-framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanhtuan-framgia/subscriptions","organizations_url":"https://api.github.com/users/leanhtuan-framgia/orgs","repos_url":"https://api.github.com/users/leanhtuan-framgia/repos","events_url":"https://api.github.com/users/leanhtuan-framgia/events{/privacy}","received_events_url":"https://api.github.com/users/leanhtuan-framgia/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-20T04:19:05Z","updated_at":"2016-09-20T07:01:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f868584d2e6012bcd58e728e7a9f396d549035e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_183/pulls/24/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_183/pulls/24/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_183/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_183/issues/24/comments","statuses_url":"https://api.github.com/repos/framgia/fels_183/statuses/edc03ee4e89207fc15602c0c56193bf7a99158cb","head":{"label":"leanhtuan-framgia:admin","ref":"admin","sha":"edc03ee4e89207fc15602c0c56193bf7a99158cb","user":{"login":"leanhtuan-framgia","id":20265241,"avatar_url":"https://avatars.githubusercontent.com/u/20265241?v=3","gravatar_id":"","url":"https://api.github.com/users/leanhtuan-framgia","html_url":"https://github.com/leanhtuan-framgia","followers_url":"https://api.github.com/users/leanhtuan-framgia/followers","following_url":"https://api.github.com/users/leanhtuan-framgia/following{/other_user}","gists_url":"https://api.github.com/users/leanhtuan-framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/leanhtuan-framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanhtuan-framgia/subscriptions","organizations_url":"https://api.github.com/users/leanhtuan-framgia/orgs","repos_url":"https://api.github.com/users/leanhtuan-framgia/repos","events_url":"https://api.github.com/users/leanhtuan-framgia/events{/privacy}","received_events_url":"https://api.github.com/users/leanhtuan-framgia/received_events","type":"User","site_admin":false},"repo":{"id":67471481,"name":"fels_183","full_name":"leanhtuan-framgia/fels_183","owner":{"login":"leanhtuan-framgia","id":20265241,"avatar_url":"https://avatars.githubusercontent.com/u/20265241?v=3","gravatar_id":"","url":"https://api.github.com/users/leanhtuan-framgia","html_url":"https://github.com/leanhtuan-framgia","followers_url":"https://api.github.com/users/leanhtuan-framgia/followers","following_url":"https://api.github.com/users/leanhtuan-framgia/following{/other_user}","gists_url":"https://api.github.com/users/leanhtuan-framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/leanhtuan-framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanhtuan-framgia/subscriptions","organizations_url":"https://api.github.com/users/leanhtuan-framgia/orgs","repos_url":"https://api.github.com/users/leanhtuan-framgia/repos","events_url":"https://api.github.com/users/leanhtuan-framgia/events{/privacy}","received_events_url":"https://api.github.com/users/leanhtuan-framgia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leanhtuan-framgia/fels_183","description":"Framgia E Learning System (Training)","fork":true,"url":"https://api.github.com/repos/leanhtuan-framgia/fels_183","forks_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/forks","keys_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/teams","hooks_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/hooks","issue_events_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/issues/events{/number}","events_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/events","assignees_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/assignees{/user}","branches_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/branches{/branch}","tags_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/tags","blobs_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/git/refs{/sha}","trees_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/statuses/{sha}","languages_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/languages","stargazers_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/stargazers","contributors_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/contributors","subscribers_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/subscribers","subscription_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/subscription","commits_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/commits{/sha}","git_commits_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/git/commits{/sha}","comments_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/comments{/number}","issue_comment_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/issues/comments{/number}","contents_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/contents/{+path}","compare_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/merges","archive_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/downloads","issues_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/issues{/number}","pulls_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/pulls{/number}","milestones_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/milestones{/number}","notifications_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/labels{/name}","releases_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/releases{/id}","deployments_url":"https://api.github.com/repos/leanhtuan-framgia/fels_183/deployments","created_at":"2016-09-06T03:51:57Z","updated_at":"2016-09-06T02:03:40Z","pushed_at":"2016-09-20T06:38:03Z","git_url":"git://github.com/leanhtuan-framgia/fels_183.git","ssh_url":"git@github.com:leanhtuan-framgia/fels_183.git","clone_url":"https://github.com/leanhtuan-framgia/fels_183.git","svn_url":"https://github.com/leanhtuan-framgia/fels_183","homepage":null,"size":345,"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":"8d1beb8f6b9d1e75891009a4ef36fd869970a084","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":67464597,"name":"fels_183","full_name":"framgia/fels_183","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_183","description":"Framgia E Learning System (Training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_183","forks_url":"https://api.github.com/repos/framgia/fels_183/forks","keys_url":"https://api.github.com/repos/framgia/fels_183/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_183/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_183/teams","hooks_url":"https://api.github.com/repos/framgia/fels_183/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_183/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_183/events","assignees_url":"https://api.github.com/repos/framgia/fels_183/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_183/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_183/tags","blobs_url":"https://api.github.com/repos/framgia/fels_183/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_183/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_183/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_183/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_183/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_183/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_183/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_183/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_183/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_183/subscription","commits_url":"https://api.github.com/repos/framgia/fels_183/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_183/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_183/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_183/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_183/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_183/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_183/merges","archive_url":"https://api.github.com/repos/framgia/fels_183/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_183/downloads","issues_url":"https://api.github.com/repos/framgia/fels_183/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_183/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_183/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_183/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_183/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_183/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_183/deployments","created_at":"2016-09-06T02:03:40Z","updated_at":"2016-09-06T02:03:40Z","pushed_at":"2016-09-20T06:41:37Z","git_url":"git://github.com/framgia/fels_183.git","ssh_url":"git@github.com:framgia/fels_183.git","clone_url":"https://github.com/framgia/fels_183.git","svn_url":"https://github.com/framgia/fels_183","homepage":null,"size":358,"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_183/pulls/24"},"html":{"href":"https://github.com/framgia/fels_183/pull/24"},"issue":{"href":"https://api.github.com/repos/framgia/fels_183/issues/24"},"comments":{"href":"https://api.github.com/repos/framgia/fels_183/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_183/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_183/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_183/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_183/statuses/edc03ee4e89207fc15602c0c56193bf7a99158cb"}}}}
{"actor":{"display_login":"leanhtuan-framgia"}}