{"action":"created","comment":{"url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments/221463245","pull_request_review_id":160118543,"id":221463245,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTQ2MzI0NQ==","diff_hunk":"@@ -0,0 +1,76 @@\n+class Admin::PostsController < Admin::BaseController\n+  before_action :find_post, only: %i(show edit update destroy)\n+  before_action :find_category, only: %i(new create)\n+\n+  def index\n+    @category = Category.find_by id: params[:category_id]\n+    @posts = if @category","path":"app/controllers/admin/posts_controller.rb","position":7,"original_position":7,"commit_id":"2e773a1b189324c2a7f8490f2ec910dece13d4ca","original_commit_id":"2e773a1b189324c2a7f8490f2ec910dece13d4ca","user":{"login":"huongnguyenmta","id":18224922,"node_id":"MDQ6VXNlcjE4MjI0OTIy","avatar_url":"https://avatars3.githubusercontent.com/u/18224922?v=4","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"body":"nếu ko quá 80 ký tự/dòng em có thể dùng toán tử 3 ngôi để viết cho gọn nhé","created_at":"2018-09-30T15:31:30Z","updated_at":"2018-09-30T15:34:58Z","html_url":"https://github.com/framgia-edu/hotel-booking_01/pull/22#discussion_r221463245","pull_request_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments/221463245"},"html":{"href":"https://github.com/framgia-edu/hotel-booking_01/pull/22#discussion_r221463245"},"pull_request":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22","id":219206899,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5MjA2ODk5","html_url":"https://github.com/framgia-edu/hotel-booking_01/pull/22","diff_url":"https://github.com/framgia-edu/hotel-booking_01/pull/22.diff","patch_url":"https://github.com/framgia-edu/hotel-booking_01/pull/22.patch","issue_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/22","number":22,"state":"open","locked":false,"title":"Crud admin posts","user":{"login":"ndviet2307","id":42731392,"node_id":"MDQ6VXNlcjQyNzMxMzky","avatar_url":"https://avatars1.githubusercontent.com/u/42731392?v=4","gravatar_id":"","url":"https://api.github.com/users/ndviet2307","html_url":"https://github.com/ndviet2307","followers_url":"https://api.github.com/users/ndviet2307/followers","following_url":"https://api.github.com/users/ndviet2307/following{/other_user}","gists_url":"https://api.github.com/users/ndviet2307/gists{/gist_id}","starred_url":"https://api.github.com/users/ndviet2307/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndviet2307/subscriptions","organizations_url":"https://api.github.com/users/ndviet2307/orgs","repos_url":"https://api.github.com/users/ndviet2307/repos","events_url":"https://api.github.com/users/ndviet2307/events{/privacy}","received_events_url":"https://api.github.com/users/ndviet2307/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-30T14:13:23Z","updated_at":"2018-09-30T15:34:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fae7820df40dc4cb815f38f456b4fa0f5d640f98","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22/commits","review_comments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22/comments","review_comment_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/22/comments","statuses_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/statuses/2e773a1b189324c2a7f8490f2ec910dece13d4ca","head":{"label":"ndviet2307:crud_admin_posts","ref":"crud_admin_posts","sha":"2e773a1b189324c2a7f8490f2ec910dece13d4ca","user":{"login":"ndviet2307","id":42731392,"node_id":"MDQ6VXNlcjQyNzMxMzky","avatar_url":"https://avatars1.githubusercontent.com/u/42731392?v=4","gravatar_id":"","url":"https://api.github.com/users/ndviet2307","html_url":"https://github.com/ndviet2307","followers_url":"https://api.github.com/users/ndviet2307/followers","following_url":"https://api.github.com/users/ndviet2307/following{/other_user}","gists_url":"https://api.github.com/users/ndviet2307/gists{/gist_id}","starred_url":"https://api.github.com/users/ndviet2307/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndviet2307/subscriptions","organizations_url":"https://api.github.com/users/ndviet2307/orgs","repos_url":"https://api.github.com/users/ndviet2307/repos","events_url":"https://api.github.com/users/ndviet2307/events{/privacy}","received_events_url":"https://api.github.com/users/ndviet2307/received_events","type":"User","site_admin":false},"repo":{"id":149400093,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk0MDAwOTM=","name":"hotel-booking_01","full_name":"ndviet2307/hotel-booking_01","private":false,"owner":{"login":"ndviet2307","id":42731392,"node_id":"MDQ6VXNlcjQyNzMxMzky","avatar_url":"https://avatars1.githubusercontent.com/u/42731392?v=4","gravatar_id":"","url":"https://api.github.com/users/ndviet2307","html_url":"https://github.com/ndviet2307","followers_url":"https://api.github.com/users/ndviet2307/followers","following_url":"https://api.github.com/users/ndviet2307/following{/other_user}","gists_url":"https://api.github.com/users/ndviet2307/gists{/gist_id}","starred_url":"https://api.github.com/users/ndviet2307/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndviet2307/subscriptions","organizations_url":"https://api.github.com/users/ndviet2307/orgs","repos_url":"https://api.github.com/users/ndviet2307/repos","events_url":"https://api.github.com/users/ndviet2307/events{/privacy}","received_events_url":"https://api.github.com/users/ndviet2307/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ndviet2307/hotel-booking_01","description":null,"fork":true,"url":"https://api.github.com/repos/ndviet2307/hotel-booking_01","forks_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/forks","keys_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/teams","hooks_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/hooks","issue_events_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/issues/events{/number}","events_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/events","assignees_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/assignees{/user}","branches_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/branches{/branch}","tags_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/tags","blobs_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/statuses/{sha}","languages_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/languages","stargazers_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/stargazers","contributors_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/contributors","subscribers_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/subscribers","subscription_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/subscription","commits_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/contents/{+path}","compare_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/merges","archive_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/downloads","issues_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/issues{/number}","pulls_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/pulls{/number}","milestones_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/milestones{/number}","notifications_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/labels{/name}","releases_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/releases{/id}","deployments_url":"https://api.github.com/repos/ndviet2307/hotel-booking_01/deployments","created_at":"2018-09-19T06:05:28Z","updated_at":"2018-09-19T06:05:30Z","pushed_at":"2018-09-30T14:34:58Z","git_url":"git://github.com/ndviet2307/hotel-booking_01.git","ssh_url":"git@github.com:ndviet2307/hotel-booking_01.git","clone_url":"https://github.com/ndviet2307/hotel-booking_01.git","svn_url":"https://github.com/ndviet2307/hotel-booking_01","homepage":null,"size":2907,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia-edu:master","ref":"master","sha":"5b1504b4c7e1b7dcb6a54a924b7857d7ae744d9c","user":{"login":"framgia-edu","id":41603165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNjAzMTY1","avatar_url":"https://avatars2.githubusercontent.com/u/41603165?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia-edu","html_url":"https://github.com/framgia-edu","followers_url":"https://api.github.com/users/framgia-edu/followers","following_url":"https://api.github.com/users/framgia-edu/following{/other_user}","gists_url":"https://api.github.com/users/framgia-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia-edu/subscriptions","organizations_url":"https://api.github.com/users/framgia-edu/orgs","repos_url":"https://api.github.com/users/framgia-edu/repos","events_url":"https://api.github.com/users/framgia-edu/events{/privacy}","received_events_url":"https://api.github.com/users/framgia-edu/received_events","type":"Organization","site_admin":false},"repo":{"id":149373241,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkzNzMyNDE=","name":"hotel-booking_01","full_name":"framgia-edu/hotel-booking_01","private":false,"owner":{"login":"framgia-edu","id":41603165,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxNjAzMTY1","avatar_url":"https://avatars2.githubusercontent.com/u/41603165?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia-edu","html_url":"https://github.com/framgia-edu","followers_url":"https://api.github.com/users/framgia-edu/followers","following_url":"https://api.github.com/users/framgia-edu/following{/other_user}","gists_url":"https://api.github.com/users/framgia-edu/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia-edu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia-edu/subscriptions","organizations_url":"https://api.github.com/users/framgia-edu/orgs","repos_url":"https://api.github.com/users/framgia-edu/repos","events_url":"https://api.github.com/users/framgia-edu/events{/privacy}","received_events_url":"https://api.github.com/users/framgia-edu/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/framgia-edu/hotel-booking_01","description":null,"fork":false,"url":"https://api.github.com/repos/framgia-edu/hotel-booking_01","forks_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/forks","keys_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/teams","hooks_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/hooks","issue_events_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/events{/number}","events_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/events","assignees_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/assignees{/user}","branches_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/branches{/branch}","tags_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/tags","blobs_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/languages","stargazers_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/stargazers","contributors_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/contributors","subscribers_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/subscribers","subscription_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/subscription","commits_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/contents/{+path}","compare_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/merges","archive_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/downloads","issues_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues{/number}","pulls_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/labels{/name}","releases_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/releases{/id}","deployments_url":"https://api.github.com/repos/framgia-edu/hotel-booking_01/deployments","created_at":"2018-09-19T01:19:14Z","updated_at":"2018-09-30T11:16:37Z","pushed_at":"2018-09-30T14:46:06Z","git_url":"git://github.com/framgia-edu/hotel-booking_01.git","ssh_url":"git@github.com:framgia-edu/hotel-booking_01.git","clone_url":"https://github.com/framgia-edu/hotel-booking_01.git","svn_url":"https://github.com/framgia-edu/hotel-booking_01","homepage":null,"size":2898,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22"},"html":{"href":"https://github.com/framgia-edu/hotel-booking_01/pull/22"},"issue":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/22"},"comments":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/framgia-edu/hotel-booking_01/statuses/2e773a1b189324c2a7f8490f2ec910dece13d4ca"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"huongnguyenmta"}}