{"action":"created","comment":{"url":"https://api.github.com/repos/naoki2bota/chat-space/pulls/comments/89315818","pull_request_review_id":9861283,"id":89315818,"diff_hunk":"@@ -3,9 +3,17 @@ class GroupsController < ApplicationController\n \n   def new\n     @group = Group.new\n+    @users = User.all\n+    respond_to do |format|\n+      format.html\n+      format.json {\n+        render json: @users\n+         }\n+    end\n   end\n \n   def create\n+    #binding.pry","path":"app/controllers/groups_controller.rb","position":null,"original_position":14,"commit_id":"ff13fb2de91b8f5446abb39a320f1e3c08a82edf","original_commit_id":"931bb9c19de2094df9f93b6cdd4d93bb7e5236df","user":{"login":"tmysok","id":17180666,"avatar_url":"https://avatars.githubusercontent.com/u/17180666?v=3","gravatar_id":"","url":"https://api.github.com/users/tmysok","html_url":"https://github.com/tmysok","followers_url":"https://api.github.com/users/tmysok/followers","following_url":"https://api.github.com/users/tmysok/following{/other_user}","gists_url":"https://api.github.com/users/tmysok/gists{/gist_id}","starred_url":"https://api.github.com/users/tmysok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmysok/subscriptions","organizations_url":"https://api.github.com/users/tmysok/orgs","repos_url":"https://api.github.com/users/tmysok/repos","events_url":"https://api.github.com/users/tmysok/events{/privacy}","received_events_url":"https://api.github.com/users/tmysok/received_events","type":"User","site_admin":false},"body":"削除しておきましょう！","created_at":"2016-11-23T13:33:07Z","updated_at":"2016-11-23T13:33:07Z","html_url":"https://github.com/naoki2bota/chat-space/pull/19#discussion_r89315818","pull_request_url":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/naoki2bota/chat-space/pulls/comments/89315818"},"html":{"href":"https://github.com/naoki2bota/chat-space/pull/19#discussion_r89315818"},"pull_request":{"href":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19","id":94817754,"html_url":"https://github.com/naoki2bota/chat-space/pull/19","diff_url":"https://github.com/naoki2bota/chat-space/pull/19.diff","patch_url":"https://github.com/naoki2bota/chat-space/pull/19.patch","issue_url":"https://api.github.com/repos/naoki2bota/chat-space/issues/19","number":19,"state":"open","locked":false,"title":"メンバー追加の非同期通信化","user":{"login":"naoki2bota","id":23024888,"avatar_url":"https://avatars.githubusercontent.com/u/23024888?v=3","gravatar_id":"","url":"https://api.github.com/users/naoki2bota","html_url":"https://github.com/naoki2bota","followers_url":"https://api.github.com/users/naoki2bota/followers","following_url":"https://api.github.com/users/naoki2bota/following{/other_user}","gists_url":"https://api.github.com/users/naoki2bota/gists{/gist_id}","starred_url":"https://api.github.com/users/naoki2bota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoki2bota/subscriptions","organizations_url":"https://api.github.com/users/naoki2bota/orgs","repos_url":"https://api.github.com/users/naoki2bota/repos","events_url":"https://api.github.com/users/naoki2bota/events{/privacy}","received_events_url":"https://api.github.com/users/naoki2bota/received_events","type":"User","site_admin":false},"body":"## WHAT\r\nメンバー追加の非同期通信化\r\n- ユーザー検索フォームまわりのviewを調整\r\n- groupコントローラーのnewアクションに全ユーザー情報のインスタンス変数(@users)とjson形式でアクセスして来た際のAPI作成\r\n- groups.jsを作成し、フォーム入力時(keyup)にajax通信し、入力した文字列と前方一致するユーザー名前を表示するイベントを設定。\r\n-追加ボタンを押すとメンバーに追加できるようにした。*この時user_idをパラメーターに追加するための<input type=\"hidden\" name=group[user_ids][] value=\"\">も追加\r\n-削除ボタンを押すと消えるようにした。\r\n\r\n## WHY\r\nメンバー追加の非同期通信化のため","created_at":"2016-11-22T13:53:53Z","updated_at":"2016-11-23T13:33:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"510b928c1d7bf512e7e81062f67f71045111980a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19/commits","review_comments_url":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19/comments","review_comment_url":"https://api.github.com/repos/naoki2bota/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/naoki2bota/chat-space/issues/19/comments","statuses_url":"https://api.github.com/repos/naoki2bota/chat-space/statuses/ff13fb2de91b8f5446abb39a320f1e3c08a82edf","head":{"label":"naoki2bota:Add_Ajax_For_Group_Create","ref":"Add_Ajax_For_Group_Create","sha":"ff13fb2de91b8f5446abb39a320f1e3c08a82edf","user":{"login":"naoki2bota","id":23024888,"avatar_url":"https://avatars.githubusercontent.com/u/23024888?v=3","gravatar_id":"","url":"https://api.github.com/users/naoki2bota","html_url":"https://github.com/naoki2bota","followers_url":"https://api.github.com/users/naoki2bota/followers","following_url":"https://api.github.com/users/naoki2bota/following{/other_user}","gists_url":"https://api.github.com/users/naoki2bota/gists{/gist_id}","starred_url":"https://api.github.com/users/naoki2bota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoki2bota/subscriptions","organizations_url":"https://api.github.com/users/naoki2bota/orgs","repos_url":"https://api.github.com/users/naoki2bota/repos","events_url":"https://api.github.com/users/naoki2bota/events{/privacy}","received_events_url":"https://api.github.com/users/naoki2bota/received_events","type":"User","site_admin":false},"repo":{"id":73360084,"name":"chat-space","full_name":"naoki2bota/chat-space","owner":{"login":"naoki2bota","id":23024888,"avatar_url":"https://avatars.githubusercontent.com/u/23024888?v=3","gravatar_id":"","url":"https://api.github.com/users/naoki2bota","html_url":"https://github.com/naoki2bota","followers_url":"https://api.github.com/users/naoki2bota/followers","following_url":"https://api.github.com/users/naoki2bota/following{/other_user}","gists_url":"https://api.github.com/users/naoki2bota/gists{/gist_id}","starred_url":"https://api.github.com/users/naoki2bota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoki2bota/subscriptions","organizations_url":"https://api.github.com/users/naoki2bota/orgs","repos_url":"https://api.github.com/users/naoki2bota/repos","events_url":"https://api.github.com/users/naoki2bota/events{/privacy}","received_events_url":"https://api.github.com/users/naoki2bota/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naoki2bota/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/naoki2bota/chat-space","forks_url":"https://api.github.com/repos/naoki2bota/chat-space/forks","keys_url":"https://api.github.com/repos/naoki2bota/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naoki2bota/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naoki2bota/chat-space/teams","hooks_url":"https://api.github.com/repos/naoki2bota/chat-space/hooks","issue_events_url":"https://api.github.com/repos/naoki2bota/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/naoki2bota/chat-space/events","assignees_url":"https://api.github.com/repos/naoki2bota/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/naoki2bota/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/naoki2bota/chat-space/tags","blobs_url":"https://api.github.com/repos/naoki2bota/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naoki2bota/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naoki2bota/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/naoki2bota/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naoki2bota/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/naoki2bota/chat-space/languages","stargazers_url":"https://api.github.com/repos/naoki2bota/chat-space/stargazers","contributors_url":"https://api.github.com/repos/naoki2bota/chat-space/contributors","subscribers_url":"https://api.github.com/repos/naoki2bota/chat-space/subscribers","subscription_url":"https://api.github.com/repos/naoki2bota/chat-space/subscription","commits_url":"https://api.github.com/repos/naoki2bota/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/naoki2bota/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/naoki2bota/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/naoki2bota/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/naoki2bota/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/naoki2bota/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naoki2bota/chat-space/merges","archive_url":"https://api.github.com/repos/naoki2bota/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naoki2bota/chat-space/downloads","issues_url":"https://api.github.com/repos/naoki2bota/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/naoki2bota/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/naoki2bota/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/naoki2bota/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naoki2bota/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/naoki2bota/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/naoki2bota/chat-space/deployments","created_at":"2016-11-10T08:07:22Z","updated_at":"2016-11-10T08:08:51Z","pushed_at":"2016-11-23T12:46:39Z","git_url":"git://github.com/naoki2bota/chat-space.git","ssh_url":"git@github.com:naoki2bota/chat-space.git","clone_url":"https://github.com/naoki2bota/chat-space.git","svn_url":"https://github.com/naoki2bota/chat-space","homepage":null,"size":164,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"naoki2bota:master","ref":"master","sha":"5cdc82cc0cd09d0122f3291fc0c22c918d9468c4","user":{"login":"naoki2bota","id":23024888,"avatar_url":"https://avatars.githubusercontent.com/u/23024888?v=3","gravatar_id":"","url":"https://api.github.com/users/naoki2bota","html_url":"https://github.com/naoki2bota","followers_url":"https://api.github.com/users/naoki2bota/followers","following_url":"https://api.github.com/users/naoki2bota/following{/other_user}","gists_url":"https://api.github.com/users/naoki2bota/gists{/gist_id}","starred_url":"https://api.github.com/users/naoki2bota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoki2bota/subscriptions","organizations_url":"https://api.github.com/users/naoki2bota/orgs","repos_url":"https://api.github.com/users/naoki2bota/repos","events_url":"https://api.github.com/users/naoki2bota/events{/privacy}","received_events_url":"https://api.github.com/users/naoki2bota/received_events","type":"User","site_admin":false},"repo":{"id":73360084,"name":"chat-space","full_name":"naoki2bota/chat-space","owner":{"login":"naoki2bota","id":23024888,"avatar_url":"https://avatars.githubusercontent.com/u/23024888?v=3","gravatar_id":"","url":"https://api.github.com/users/naoki2bota","html_url":"https://github.com/naoki2bota","followers_url":"https://api.github.com/users/naoki2bota/followers","following_url":"https://api.github.com/users/naoki2bota/following{/other_user}","gists_url":"https://api.github.com/users/naoki2bota/gists{/gist_id}","starred_url":"https://api.github.com/users/naoki2bota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoki2bota/subscriptions","organizations_url":"https://api.github.com/users/naoki2bota/orgs","repos_url":"https://api.github.com/users/naoki2bota/repos","events_url":"https://api.github.com/users/naoki2bota/events{/privacy}","received_events_url":"https://api.github.com/users/naoki2bota/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naoki2bota/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/naoki2bota/chat-space","forks_url":"https://api.github.com/repos/naoki2bota/chat-space/forks","keys_url":"https://api.github.com/repos/naoki2bota/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naoki2bota/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naoki2bota/chat-space/teams","hooks_url":"https://api.github.com/repos/naoki2bota/chat-space/hooks","issue_events_url":"https://api.github.com/repos/naoki2bota/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/naoki2bota/chat-space/events","assignees_url":"https://api.github.com/repos/naoki2bota/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/naoki2bota/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/naoki2bota/chat-space/tags","blobs_url":"https://api.github.com/repos/naoki2bota/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naoki2bota/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naoki2bota/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/naoki2bota/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naoki2bota/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/naoki2bota/chat-space/languages","stargazers_url":"https://api.github.com/repos/naoki2bota/chat-space/stargazers","contributors_url":"https://api.github.com/repos/naoki2bota/chat-space/contributors","subscribers_url":"https://api.github.com/repos/naoki2bota/chat-space/subscribers","subscription_url":"https://api.github.com/repos/naoki2bota/chat-space/subscription","commits_url":"https://api.github.com/repos/naoki2bota/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/naoki2bota/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/naoki2bota/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/naoki2bota/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/naoki2bota/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/naoki2bota/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naoki2bota/chat-space/merges","archive_url":"https://api.github.com/repos/naoki2bota/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naoki2bota/chat-space/downloads","issues_url":"https://api.github.com/repos/naoki2bota/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/naoki2bota/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/naoki2bota/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/naoki2bota/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naoki2bota/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/naoki2bota/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/naoki2bota/chat-space/deployments","created_at":"2016-11-10T08:07:22Z","updated_at":"2016-11-10T08:08:51Z","pushed_at":"2016-11-23T12:46:39Z","git_url":"git://github.com/naoki2bota/chat-space.git","ssh_url":"git@github.com:naoki2bota/chat-space.git","clone_url":"https://github.com/naoki2bota/chat-space.git","svn_url":"https://github.com/naoki2bota/chat-space","homepage":null,"size":164,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19"},"html":{"href":"https://github.com/naoki2bota/chat-space/pull/19"},"issue":{"href":"https://api.github.com/repos/naoki2bota/chat-space/issues/19"},"comments":{"href":"https://api.github.com/repos/naoki2bota/chat-space/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/naoki2bota/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/naoki2bota/chat-space/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/naoki2bota/chat-space/statuses/ff13fb2de91b8f5446abb39a320f1e3c08a82edf"}}}}
{"actor":{"display_login":"tmysok"}}