{"action":"created","comment":{"url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/comments/244089362","pull_request_review_id":188010780,"id":244089362,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDA4OTM2Mg==","diff_hunk":"@@ -1,3 +1,15 @@\n class StaticPagesController < ApplicationController\n-  def index; end\n+  def index\n+    respond_to do |format|\n+      format.html {}\n+      format.json{change_to_ajax}\n+    end\n+  end\n+\n+  private\n+\n+  def change_to_ajax\n+    @cities = City.all.map(&:name)","path":"app/controllers/static_pages_controller.rb","position":13,"original_position":13,"commit_id":"e91c03a9cb6fc7e99822ef4b7737a819782c4845","original_commit_id":"e91c03a9cb6fc7e99822ef4b7737a819782c4845","user":{"login":"thaochan5197","id":33535080,"node_id":"MDQ6VXNlcjMzNTM1MDgw","avatar_url":"https://avatars1.githubusercontent.com/u/33535080?v=4","gravatar_id":"","url":"https://api.github.com/users/thaochan5197","html_url":"https://github.com/thaochan5197","followers_url":"https://api.github.com/users/thaochan5197/followers","following_url":"https://api.github.com/users/thaochan5197/following{/other_user}","gists_url":"https://api.github.com/users/thaochan5197/gists{/gist_id}","starred_url":"https://api.github.com/users/thaochan5197/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaochan5197/subscriptions","organizations_url":"https://api.github.com/users/thaochan5197/orgs","repos_url":"https://api.github.com/users/thaochan5197/repos","events_url":"https://api.github.com/users/thaochan5197/events{/privacy}","received_events_url":"https://api.github.com/users/thaochan5197/received_events","type":"User","site_admin":false},"body":"bỏ all không đươc a","created_at":"2018-12-27T06:19:57Z","updated_at":"2018-12-27T06:19:57Z","html_url":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair/pull/8#discussion_r244089362","pull_request_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/comments/244089362"},"html":{"href":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair/pull/8#discussion_r244089362"},"pull_request":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8"}},"in_reply_to_id":244063887},"pull_request":{"url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8","id":240797349,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwNzk3MzQ5","html_url":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair/pull/8","diff_url":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair/pull/8.diff","patch_url":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair/pull/8.patch","issue_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/issues/8","number":8,"state":"open","locked":false,"title":"ref Task #4501 search trip","user":{"login":"thaochan5197","id":33535080,"node_id":"MDQ6VXNlcjMzNTM1MDgw","avatar_url":"https://avatars1.githubusercontent.com/u/33535080?v=4","gravatar_id":"","url":"https://api.github.com/users/thaochan5197","html_url":"https://github.com/thaochan5197","followers_url":"https://api.github.com/users/thaochan5197/followers","following_url":"https://api.github.com/users/thaochan5197/following{/other_user}","gists_url":"https://api.github.com/users/thaochan5197/gists{/gist_id}","starred_url":"https://api.github.com/users/thaochan5197/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaochan5197/subscriptions","organizations_url":"https://api.github.com/users/thaochan5197/orgs","repos_url":"https://api.github.com/users/thaochan5197/repos","events_url":"https://api.github.com/users/thaochan5197/events{/privacy}","received_events_url":"https://api.github.com/users/thaochan5197/received_events","type":"User","site_admin":false},"body":"![screenshot from 2018-12-24 23-40-16](https://user-images.githubusercontent.com/33535080/50404170-83ac9700-07d7-11e9-80b6-53a1e6968dcc.png)\r\nhttps://edu-redmine.framgia.vn/issues/4501","created_at":"2018-12-24T17:00:01Z","updated_at":"2018-12-27T06:19:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b0f418b448ac785540a0a021f06723819cef308","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8/commits","review_comments_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8/comments","review_comment_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/comments{/number}","comments_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/issues/8/comments","statuses_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/statuses/e91c03a9cb6fc7e99822ef4b7737a819782c4845","head":{"label":"thaochan5197:search_trips","ref":"search_trips","sha":"e91c03a9cb6fc7e99822ef4b7737a819782c4845","user":{"login":"thaochan5197","id":33535080,"node_id":"MDQ6VXNlcjMzNTM1MDgw","avatar_url":"https://avatars1.githubusercontent.com/u/33535080?v=4","gravatar_id":"","url":"https://api.github.com/users/thaochan5197","html_url":"https://github.com/thaochan5197","followers_url":"https://api.github.com/users/thaochan5197/followers","following_url":"https://api.github.com/users/thaochan5197/following{/other_user}","gists_url":"https://api.github.com/users/thaochan5197/gists{/gist_id}","starred_url":"https://api.github.com/users/thaochan5197/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaochan5197/subscriptions","organizations_url":"https://api.github.com/users/thaochan5197/orgs","repos_url":"https://api.github.com/users/thaochan5197/repos","events_url":"https://api.github.com/users/thaochan5197/events{/privacy}","received_events_url":"https://api.github.com/users/thaochan5197/received_events","type":"User","site_admin":false},"repo":{"id":162070621,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIwNzA2MjE=","name":"lab_ruby_oe15_ticket_fair","full_name":"thaochan5197/lab_ruby_oe15_ticket_fair","private":false,"owner":{"login":"thaochan5197","id":33535080,"node_id":"MDQ6VXNlcjMzNTM1MDgw","avatar_url":"https://avatars1.githubusercontent.com/u/33535080?v=4","gravatar_id":"","url":"https://api.github.com/users/thaochan5197","html_url":"https://github.com/thaochan5197","followers_url":"https://api.github.com/users/thaochan5197/followers","following_url":"https://api.github.com/users/thaochan5197/following{/other_user}","gists_url":"https://api.github.com/users/thaochan5197/gists{/gist_id}","starred_url":"https://api.github.com/users/thaochan5197/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thaochan5197/subscriptions","organizations_url":"https://api.github.com/users/thaochan5197/orgs","repos_url":"https://api.github.com/users/thaochan5197/repos","events_url":"https://api.github.com/users/thaochan5197/events{/privacy}","received_events_url":"https://api.github.com/users/thaochan5197/received_events","type":"User","site_admin":false},"html_url":"https://github.com/thaochan5197/lab_ruby_oe15_ticket_fair","description":null,"fork":true,"url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair","forks_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/forks","keys_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/teams","hooks_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/hooks","issue_events_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/issues/events{/number}","events_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/events","assignees_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/assignees{/user}","branches_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/branches{/branch}","tags_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/tags","blobs_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/git/refs{/sha}","trees_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/statuses/{sha}","languages_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/languages","stargazers_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/stargazers","contributors_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/contributors","subscribers_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/subscribers","subscription_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/subscription","commits_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/commits{/sha}","git_commits_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/git/commits{/sha}","comments_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/comments{/number}","issue_comment_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/issues/comments{/number}","contents_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/contents/{+path}","compare_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/merges","archive_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/downloads","issues_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/issues{/number}","pulls_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/pulls{/number}","milestones_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/milestones{/number}","notifications_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/labels{/name}","releases_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/releases{/id}","deployments_url":"https://api.github.com/repos/thaochan5197/lab_ruby_oe15_ticket_fair/deployments","created_at":"2018-12-17T03:41:24Z","updated_at":"2018-12-17T03:41:26Z","pushed_at":"2018-12-26T09:54:53Z","git_url":"git://github.com/thaochan5197/lab_ruby_oe15_ticket_fair.git","ssh_url":"git@github.com:thaochan5197/lab_ruby_oe15_ticket_fair.git","clone_url":"https://github.com/thaochan5197/lab_ruby_oe15_ticket_fair.git","svn_url":"https://github.com/thaochan5197/lab_ruby_oe15_ticket_fair","homepage":null,"size":150,"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":"awesome-academy:master","ref":"master","sha":"e5af25affa8c96bdd659f6f8f5d4081db3964a63","user":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":162067681,"node_id":"MDEwOlJlcG9zaXRvcnkxNjIwNjc2ODE=","name":"lab_ruby_oe15_ticket_fair","full_name":"awesome-academy/lab_ruby_oe15_ticket_fair","private":false,"owner":{"login":"awesome-academy","id":33895223,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzODk1MjIz","avatar_url":"https://avatars0.githubusercontent.com/u/33895223?v=4","gravatar_id":"","url":"https://api.github.com/users/awesome-academy","html_url":"https://github.com/awesome-academy","followers_url":"https://api.github.com/users/awesome-academy/followers","following_url":"https://api.github.com/users/awesome-academy/following{/other_user}","gists_url":"https://api.github.com/users/awesome-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/awesome-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesome-academy/subscriptions","organizations_url":"https://api.github.com/users/awesome-academy/orgs","repos_url":"https://api.github.com/users/awesome-academy/repos","events_url":"https://api.github.com/users/awesome-academy/events{/privacy}","received_events_url":"https://api.github.com/users/awesome-academy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair","description":null,"fork":false,"url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair","forks_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/forks","keys_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/keys{/key_id}","collaborators_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/teams","hooks_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/hooks","issue_events_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/issues/events{/number}","events_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/events","assignees_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/assignees{/user}","branches_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/branches{/branch}","tags_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/tags","blobs_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/git/refs{/sha}","trees_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/git/trees{/sha}","statuses_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/statuses/{sha}","languages_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/languages","stargazers_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/stargazers","contributors_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/contributors","subscribers_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/subscribers","subscription_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/subscription","commits_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/commits{/sha}","git_commits_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/git/commits{/sha}","comments_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/comments{/number}","issue_comment_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/issues/comments{/number}","contents_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/contents/{+path}","compare_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/compare/{base}...{head}","merges_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/merges","archive_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/downloads","issues_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/issues{/number}","pulls_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls{/number}","milestones_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/milestones{/number}","notifications_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/labels{/name}","releases_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/releases{/id}","deployments_url":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/deployments","created_at":"2018-12-17T03:11:09Z","updated_at":"2018-12-24T02:58:35Z","pushed_at":"2018-12-26T16:38:42Z","git_url":"git://github.com/awesome-academy/lab_ruby_oe15_ticket_fair.git","ssh_url":"git@github.com:awesome-academy/lab_ruby_oe15_ticket_fair.git","clone_url":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair.git","svn_url":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair","homepage":null,"size":123,"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":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8"},"html":{"href":"https://github.com/awesome-academy/lab_ruby_oe15_ticket_fair/pull/8"},"issue":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/issues/8"},"comments":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/awesome-academy/lab_ruby_oe15_ticket_fair/statuses/e91c03a9cb6fc7e99822ef4b7737a819782c4845"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"thaochan5197"}}