{"action":"created","comment":{"url":"https://api.github.com/repos/jessicazu/chat-space/pulls/comments/111883741","pull_request_review_id":33155366,"id":111883741,"diff_hunk":"@@ -2,6 +2,19 @@ class MessagesController < ApplicationController\n \n   def index\n     @groups = current_user.groups\n-    @message = \"\"\n+    @group = Group.find(params[:group_id])\n+    @messages = Message.where(group_id: params[:group_id])\n+    @message = Message.new\n+  end\n+\n+  def create","path":"app/controllers/messages_controller.rb","position":10,"original_position":10,"commit_id":"4889c16b4e5ffcd26104729a15c0032ec1b23400","original_commit_id":"db7195dca41c2ba34db847f97255cc0570d8bf57","user":{"login":"kinshotomoya","id":21333415,"avatar_url":"https://avatars3.githubusercontent.com/u/21333415?v=3","gravatar_id":"","url":"https://api.github.com/users/kinshotomoya","html_url":"https://github.com/kinshotomoya","followers_url":"https://api.github.com/users/kinshotomoya/followers","following_url":"https://api.github.com/users/kinshotomoya/following{/other_user}","gists_url":"https://api.github.com/users/kinshotomoya/gists{/gist_id}","starred_url":"https://api.github.com/users/kinshotomoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinshotomoya/subscriptions","organizations_url":"https://api.github.com/users/kinshotomoya/orgs","repos_url":"https://api.github.com/users/kinshotomoya/repos","events_url":"https://api.github.com/users/kinshotomoya/events{/privacy}","received_events_url":"https://api.github.com/users/kinshotomoya/received_events","type":"User","site_admin":false},"body":"groupの作成と同じように書きましょう！","created_at":"2017-04-18T07:05:02Z","updated_at":"2017-04-18T07:21:11Z","html_url":"https://github.com/jessicazu/chat-space/pull/11#discussion_r111883741","pull_request_url":"https://api.github.com/repos/jessicazu/chat-space/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/jessicazu/chat-space/pulls/comments/111883741"},"html":{"href":"https://github.com/jessicazu/chat-space/pull/11#discussion_r111883741"},"pull_request":{"href":"https://api.github.com/repos/jessicazu/chat-space/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/jessicazu/chat-space/pulls/11","id":116125685,"html_url":"https://github.com/jessicazu/chat-space/pull/11","diff_url":"https://github.com/jessicazu/chat-space/pull/11.diff","patch_url":"https://github.com/jessicazu/chat-space/pull/11.patch","issue_url":"https://api.github.com/repos/jessicazu/chat-space/issues/11","number":11,"state":"open","locked":false,"title":"Make  function to send message","user":{"login":"jessicazu","id":24587751,"avatar_url":"https://avatars2.githubusercontent.com/u/24587751?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicazu","html_url":"https://github.com/jessicazu","followers_url":"https://api.github.com/users/jessicazu/followers","following_url":"https://api.github.com/users/jessicazu/following{/other_user}","gists_url":"https://api.github.com/users/jessicazu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicazu/subscriptions","organizations_url":"https://api.github.com/users/jessicazu/orgs","repos_url":"https://api.github.com/users/jessicazu/repos","events_url":"https://api.github.com/users/jessicazu/events{/privacy}","received_events_url":"https://api.github.com/users/jessicazu/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nMade  function to send message\r\n\r\n# WHY\r\nTo send messages and see them ","created_at":"2017-04-17T11:49:08Z","updated_at":"2017-04-18T07:21:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a25529655d71933f4c6981f7dced38d592509757","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jessicazu/chat-space/pulls/11/commits","review_comments_url":"https://api.github.com/repos/jessicazu/chat-space/pulls/11/comments","review_comment_url":"https://api.github.com/repos/jessicazu/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jessicazu/chat-space/issues/11/comments","statuses_url":"https://api.github.com/repos/jessicazu/chat-space/statuses/4889c16b4e5ffcd26104729a15c0032ec1b23400","head":{"label":"jessicazu:message_function","ref":"message_function","sha":"4889c16b4e5ffcd26104729a15c0032ec1b23400","user":{"login":"jessicazu","id":24587751,"avatar_url":"https://avatars2.githubusercontent.com/u/24587751?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicazu","html_url":"https://github.com/jessicazu","followers_url":"https://api.github.com/users/jessicazu/followers","following_url":"https://api.github.com/users/jessicazu/following{/other_user}","gists_url":"https://api.github.com/users/jessicazu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicazu/subscriptions","organizations_url":"https://api.github.com/users/jessicazu/orgs","repos_url":"https://api.github.com/users/jessicazu/repos","events_url":"https://api.github.com/users/jessicazu/events{/privacy}","received_events_url":"https://api.github.com/users/jessicazu/received_events","type":"User","site_admin":false},"repo":{"id":86150230,"name":"chat-space","full_name":"jessicazu/chat-space","owner":{"login":"jessicazu","id":24587751,"avatar_url":"https://avatars2.githubusercontent.com/u/24587751?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicazu","html_url":"https://github.com/jessicazu","followers_url":"https://api.github.com/users/jessicazu/followers","following_url":"https://api.github.com/users/jessicazu/following{/other_user}","gists_url":"https://api.github.com/users/jessicazu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicazu/subscriptions","organizations_url":"https://api.github.com/users/jessicazu/orgs","repos_url":"https://api.github.com/users/jessicazu/repos","events_url":"https://api.github.com/users/jessicazu/events{/privacy}","received_events_url":"https://api.github.com/users/jessicazu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jessicazu/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/jessicazu/chat-space","forks_url":"https://api.github.com/repos/jessicazu/chat-space/forks","keys_url":"https://api.github.com/repos/jessicazu/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jessicazu/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jessicazu/chat-space/teams","hooks_url":"https://api.github.com/repos/jessicazu/chat-space/hooks","issue_events_url":"https://api.github.com/repos/jessicazu/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/jessicazu/chat-space/events","assignees_url":"https://api.github.com/repos/jessicazu/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/jessicazu/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/jessicazu/chat-space/tags","blobs_url":"https://api.github.com/repos/jessicazu/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jessicazu/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jessicazu/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/jessicazu/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jessicazu/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/jessicazu/chat-space/languages","stargazers_url":"https://api.github.com/repos/jessicazu/chat-space/stargazers","contributors_url":"https://api.github.com/repos/jessicazu/chat-space/contributors","subscribers_url":"https://api.github.com/repos/jessicazu/chat-space/subscribers","subscription_url":"https://api.github.com/repos/jessicazu/chat-space/subscription","commits_url":"https://api.github.com/repos/jessicazu/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/jessicazu/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/jessicazu/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/jessicazu/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/jessicazu/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/jessicazu/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jessicazu/chat-space/merges","archive_url":"https://api.github.com/repos/jessicazu/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jessicazu/chat-space/downloads","issues_url":"https://api.github.com/repos/jessicazu/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/jessicazu/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/jessicazu/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/jessicazu/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jessicazu/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/jessicazu/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/jessicazu/chat-space/deployments","created_at":"2017-03-25T10:44:17Z","updated_at":"2017-03-25T10:44:25Z","pushed_at":"2017-04-17T12:04:16Z","git_url":"git://github.com/jessicazu/chat-space.git","ssh_url":"git@github.com:jessicazu/chat-space.git","clone_url":"https://github.com/jessicazu/chat-space.git","svn_url":"https://github.com/jessicazu/chat-space","homepage":null,"size":96,"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":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jessicazu:master","ref":"master","sha":"a229fedd3583726a1aa523adeac8ee9c56201bb2","user":{"login":"jessicazu","id":24587751,"avatar_url":"https://avatars2.githubusercontent.com/u/24587751?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicazu","html_url":"https://github.com/jessicazu","followers_url":"https://api.github.com/users/jessicazu/followers","following_url":"https://api.github.com/users/jessicazu/following{/other_user}","gists_url":"https://api.github.com/users/jessicazu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicazu/subscriptions","organizations_url":"https://api.github.com/users/jessicazu/orgs","repos_url":"https://api.github.com/users/jessicazu/repos","events_url":"https://api.github.com/users/jessicazu/events{/privacy}","received_events_url":"https://api.github.com/users/jessicazu/received_events","type":"User","site_admin":false},"repo":{"id":86150230,"name":"chat-space","full_name":"jessicazu/chat-space","owner":{"login":"jessicazu","id":24587751,"avatar_url":"https://avatars2.githubusercontent.com/u/24587751?v=3","gravatar_id":"","url":"https://api.github.com/users/jessicazu","html_url":"https://github.com/jessicazu","followers_url":"https://api.github.com/users/jessicazu/followers","following_url":"https://api.github.com/users/jessicazu/following{/other_user}","gists_url":"https://api.github.com/users/jessicazu/gists{/gist_id}","starred_url":"https://api.github.com/users/jessicazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessicazu/subscriptions","organizations_url":"https://api.github.com/users/jessicazu/orgs","repos_url":"https://api.github.com/users/jessicazu/repos","events_url":"https://api.github.com/users/jessicazu/events{/privacy}","received_events_url":"https://api.github.com/users/jessicazu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jessicazu/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/jessicazu/chat-space","forks_url":"https://api.github.com/repos/jessicazu/chat-space/forks","keys_url":"https://api.github.com/repos/jessicazu/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jessicazu/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jessicazu/chat-space/teams","hooks_url":"https://api.github.com/repos/jessicazu/chat-space/hooks","issue_events_url":"https://api.github.com/repos/jessicazu/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/jessicazu/chat-space/events","assignees_url":"https://api.github.com/repos/jessicazu/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/jessicazu/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/jessicazu/chat-space/tags","blobs_url":"https://api.github.com/repos/jessicazu/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jessicazu/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jessicazu/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/jessicazu/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jessicazu/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/jessicazu/chat-space/languages","stargazers_url":"https://api.github.com/repos/jessicazu/chat-space/stargazers","contributors_url":"https://api.github.com/repos/jessicazu/chat-space/contributors","subscribers_url":"https://api.github.com/repos/jessicazu/chat-space/subscribers","subscription_url":"https://api.github.com/repos/jessicazu/chat-space/subscription","commits_url":"https://api.github.com/repos/jessicazu/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/jessicazu/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/jessicazu/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/jessicazu/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/jessicazu/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/jessicazu/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jessicazu/chat-space/merges","archive_url":"https://api.github.com/repos/jessicazu/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jessicazu/chat-space/downloads","issues_url":"https://api.github.com/repos/jessicazu/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/jessicazu/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/jessicazu/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/jessicazu/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jessicazu/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/jessicazu/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/jessicazu/chat-space/deployments","created_at":"2017-03-25T10:44:17Z","updated_at":"2017-03-25T10:44:25Z","pushed_at":"2017-04-17T12:04:16Z","git_url":"git://github.com/jessicazu/chat-space.git","ssh_url":"git@github.com:jessicazu/chat-space.git","clone_url":"https://github.com/jessicazu/chat-space.git","svn_url":"https://github.com/jessicazu/chat-space","homepage":null,"size":96,"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":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/jessicazu/chat-space/pulls/11"},"html":{"href":"https://github.com/jessicazu/chat-space/pull/11"},"issue":{"href":"https://api.github.com/repos/jessicazu/chat-space/issues/11"},"comments":{"href":"https://api.github.com/repos/jessicazu/chat-space/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/jessicazu/chat-space/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/jessicazu/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jessicazu/chat-space/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/jessicazu/chat-space/statuses/4889c16b4e5ffcd26104729a15c0032ec1b23400"}}}}
{"actor":{"display_login":"kinshotomoya"}}