{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_219/pulls/comments/94380656","pull_request_review_id":14905622,"id":94380656,"diff_hunk":"@@ -1,5 +1,38 @@\n <% provide :title, @category.name %>\n+<% if current_user.admin? %>\n+  <%= form_for @word do |f| %>\n+    <%= render \"shared/error_messages\", object: f.object %>\n+    <div class=\"field\">\n+      <%= hidden_field_tag :category_id, @category.id %>\n+      <%= f.label :content %>\n+      <%= f.text_field :content, class: \"form-control\" %>\n+    </div>\n+    <%= f.fields_for :answers do |builder| %>\n+      <%= render \"answer_fields\", f: builder %>\n+    <% end %>\n+    <p><%= link_to_add_fields t \"add_answer\", f, :answers %></p>\n+    <%= f.submit t \"create\", class: \"btn btn-primary\" %>\n+  <% end %>\n+<% end %>\n <div class=\"panel panel-primary\">\n   <div class=\"panel-heading\"><%= @category.name %></div>\n   <div class=\"panel-body\"><%= @category.discription %></div>\n </div>\n+<% if @category.words.any? %>\n+  <%= will_paginate %>\n+  <% @words.each do |word| %>","path":"app/views/categories/show.html.erb","position":23,"original_position":23,"commit_id":"47aa666f4080f9d50e4b6dc3224e73a55489337b","original_commit_id":"47aa666f4080f9d50e4b6dc3224e73a55489337b","user":{"login":"nvtanh","id":5591946,"avatar_url":"https://avatars.githubusercontent.com/u/5591946?v=3","gravatar_id":"","url":"https://api.github.com/users/nvtanh","html_url":"https://github.com/nvtanh","followers_url":"https://api.github.com/users/nvtanh/followers","following_url":"https://api.github.com/users/nvtanh/following{/other_user}","gists_url":"https://api.github.com/users/nvtanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nvtanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvtanh/subscriptions","organizations_url":"https://api.github.com/users/nvtanh/orgs","repos_url":"https://api.github.com/users/nvtanh/repos","events_url":"https://api.github.com/users/nvtanh/events{/privacy}","received_events_url":"https://api.github.com/users/nvtanh/received_events","type":"User","site_admin":false},"body":"dùng render partial","created_at":"2017-01-03T10:00:53Z","updated_at":"2017-01-03T10:01:15Z","html_url":"https://github.com/framgia/fels_219/pull/8#discussion_r94380656","pull_request_url":"https://api.github.com/repos/framgia/fels_219/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_219/pulls/comments/94380656"},"html":{"href":"https://github.com/framgia/fels_219/pull/8#discussion_r94380656"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_219/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_219/pulls/8","id":99674557,"html_url":"https://github.com/framgia/fels_219/pull/8","diff_url":"https://github.com/framgia/fels_219/pull/8.diff","patch_url":"https://github.com/framgia/fels_219/pull/8.patch","issue_url":"https://api.github.com/repos/framgia/fels_219/issues/8","number":8,"state":"open","locked":false,"title":"Admin word answer","user":{"login":"phuongnq1995","id":19870795,"avatar_url":"https://avatars.githubusercontent.com/u/19870795?v=3","gravatar_id":"","url":"https://api.github.com/users/phuongnq1995","html_url":"https://github.com/phuongnq1995","followers_url":"https://api.github.com/users/phuongnq1995/followers","following_url":"https://api.github.com/users/phuongnq1995/following{/other_user}","gists_url":"https://api.github.com/users/phuongnq1995/gists{/gist_id}","starred_url":"https://api.github.com/users/phuongnq1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuongnq1995/subscriptions","organizations_url":"https://api.github.com/users/phuongnq1995/orgs","repos_url":"https://api.github.com/users/phuongnq1995/repos","events_url":"https://api.github.com/users/phuongnq1995/events{/privacy}","received_events_url":"https://api.github.com/users/phuongnq1995/received_events","type":"User","site_admin":false},"body":"Admin create edit delete word + answers","created_at":"2016-12-29T16:37:43Z","updated_at":"2017-01-03T10:01:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"875d4d0737d50edd8c576cc653fdce56339ce5ec","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_219/pulls/8/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_219/pulls/8/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_219/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_219/issues/8/comments","statuses_url":"https://api.github.com/repos/framgia/fels_219/statuses/47aa666f4080f9d50e4b6dc3224e73a55489337b","head":{"label":"phuongnq1995:admin-word-answer","ref":"admin-word-answer","sha":"47aa666f4080f9d50e4b6dc3224e73a55489337b","user":{"login":"phuongnq1995","id":19870795,"avatar_url":"https://avatars.githubusercontent.com/u/19870795?v=3","gravatar_id":"","url":"https://api.github.com/users/phuongnq1995","html_url":"https://github.com/phuongnq1995","followers_url":"https://api.github.com/users/phuongnq1995/followers","following_url":"https://api.github.com/users/phuongnq1995/following{/other_user}","gists_url":"https://api.github.com/users/phuongnq1995/gists{/gist_id}","starred_url":"https://api.github.com/users/phuongnq1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuongnq1995/subscriptions","organizations_url":"https://api.github.com/users/phuongnq1995/orgs","repos_url":"https://api.github.com/users/phuongnq1995/repos","events_url":"https://api.github.com/users/phuongnq1995/events{/privacy}","received_events_url":"https://api.github.com/users/phuongnq1995/received_events","type":"User","site_admin":false},"repo":{"id":74930799,"name":"fels_219","full_name":"phuongnq1995/fels_219","owner":{"login":"phuongnq1995","id":19870795,"avatar_url":"https://avatars.githubusercontent.com/u/19870795?v=3","gravatar_id":"","url":"https://api.github.com/users/phuongnq1995","html_url":"https://github.com/phuongnq1995","followers_url":"https://api.github.com/users/phuongnq1995/followers","following_url":"https://api.github.com/users/phuongnq1995/following{/other_user}","gists_url":"https://api.github.com/users/phuongnq1995/gists{/gist_id}","starred_url":"https://api.github.com/users/phuongnq1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phuongnq1995/subscriptions","organizations_url":"https://api.github.com/users/phuongnq1995/orgs","repos_url":"https://api.github.com/users/phuongnq1995/repos","events_url":"https://api.github.com/users/phuongnq1995/events{/privacy}","received_events_url":"https://api.github.com/users/phuongnq1995/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phuongnq1995/fels_219","description":null,"fork":true,"url":"https://api.github.com/repos/phuongnq1995/fels_219","forks_url":"https://api.github.com/repos/phuongnq1995/fels_219/forks","keys_url":"https://api.github.com/repos/phuongnq1995/fels_219/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phuongnq1995/fels_219/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phuongnq1995/fels_219/teams","hooks_url":"https://api.github.com/repos/phuongnq1995/fels_219/hooks","issue_events_url":"https://api.github.com/repos/phuongnq1995/fels_219/issues/events{/number}","events_url":"https://api.github.com/repos/phuongnq1995/fels_219/events","assignees_url":"https://api.github.com/repos/phuongnq1995/fels_219/assignees{/user}","branches_url":"https://api.github.com/repos/phuongnq1995/fels_219/branches{/branch}","tags_url":"https://api.github.com/repos/phuongnq1995/fels_219/tags","blobs_url":"https://api.github.com/repos/phuongnq1995/fels_219/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phuongnq1995/fels_219/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phuongnq1995/fels_219/git/refs{/sha}","trees_url":"https://api.github.com/repos/phuongnq1995/fels_219/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phuongnq1995/fels_219/statuses/{sha}","languages_url":"https://api.github.com/repos/phuongnq1995/fels_219/languages","stargazers_url":"https://api.github.com/repos/phuongnq1995/fels_219/stargazers","contributors_url":"https://api.github.com/repos/phuongnq1995/fels_219/contributors","subscribers_url":"https://api.github.com/repos/phuongnq1995/fels_219/subscribers","subscription_url":"https://api.github.com/repos/phuongnq1995/fels_219/subscription","commits_url":"https://api.github.com/repos/phuongnq1995/fels_219/commits{/sha}","git_commits_url":"https://api.github.com/repos/phuongnq1995/fels_219/git/commits{/sha}","comments_url":"https://api.github.com/repos/phuongnq1995/fels_219/comments{/number}","issue_comment_url":"https://api.github.com/repos/phuongnq1995/fels_219/issues/comments{/number}","contents_url":"https://api.github.com/repos/phuongnq1995/fels_219/contents/{+path}","compare_url":"https://api.github.com/repos/phuongnq1995/fels_219/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phuongnq1995/fels_219/merges","archive_url":"https://api.github.com/repos/phuongnq1995/fels_219/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phuongnq1995/fels_219/downloads","issues_url":"https://api.github.com/repos/phuongnq1995/fels_219/issues{/number}","pulls_url":"https://api.github.com/repos/phuongnq1995/fels_219/pulls{/number}","milestones_url":"https://api.github.com/repos/phuongnq1995/fels_219/milestones{/number}","notifications_url":"https://api.github.com/repos/phuongnq1995/fels_219/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phuongnq1995/fels_219/labels{/name}","releases_url":"https://api.github.com/repos/phuongnq1995/fels_219/releases{/id}","deployments_url":"https://api.github.com/repos/phuongnq1995/fels_219/deployments","created_at":"2016-11-28T02:45:17Z","updated_at":"2016-11-28T14:50:34Z","pushed_at":"2017-01-03T02:56:19Z","git_url":"git://github.com/phuongnq1995/fels_219.git","ssh_url":"git@github.com:phuongnq1995/fels_219.git","clone_url":"https://github.com/phuongnq1995/fels_219.git","svn_url":"https://github.com/phuongnq1995/fels_219","homepage":null,"size":792,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"a9186f690be88e68b16ace05a45c7701673e9bcc","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":74929545,"name":"fels_219","full_name":"framgia/fels_219","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_219","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/fels_219","forks_url":"https://api.github.com/repos/framgia/fels_219/forks","keys_url":"https://api.github.com/repos/framgia/fels_219/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_219/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_219/teams","hooks_url":"https://api.github.com/repos/framgia/fels_219/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_219/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_219/events","assignees_url":"https://api.github.com/repos/framgia/fels_219/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_219/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_219/tags","blobs_url":"https://api.github.com/repos/framgia/fels_219/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_219/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_219/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_219/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_219/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_219/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_219/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_219/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_219/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_219/subscription","commits_url":"https://api.github.com/repos/framgia/fels_219/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_219/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_219/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_219/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_219/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_219/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_219/merges","archive_url":"https://api.github.com/repos/framgia/fels_219/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_219/downloads","issues_url":"https://api.github.com/repos/framgia/fels_219/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_219/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_219/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_219/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_219/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_219/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_219/deployments","created_at":"2016-11-28T02:27:17Z","updated_at":"2016-12-29T09:09:42Z","pushed_at":"2017-01-03T02:56:20Z","git_url":"git://github.com/framgia/fels_219.git","ssh_url":"git@github.com:framgia/fels_219.git","clone_url":"https://github.com/framgia/fels_219.git","svn_url":"https://github.com/framgia/fels_219","homepage":null,"size":787,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_219/pulls/8"},"html":{"href":"https://github.com/framgia/fels_219/pull/8"},"issue":{"href":"https://api.github.com/repos/framgia/fels_219/issues/8"},"comments":{"href":"https://api.github.com/repos/framgia/fels_219/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_219/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_219/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_219/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_219/statuses/47aa666f4080f9d50e4b6dc3224e73a55489337b"}}}}
{"actor":{"display_login":"nvtanh"}}