{"action":"created","comment":{"url":"https://api.github.com/repos/hukuikoki/chat-space/pulls/comments/113440511","pull_request_review_id":34827745,"id":113440511,"diff_hunk":"@@ -3,6 +3,21 @@ def index\n     @group = Group.find(params[:group_id])\n     @groups = current_user.groups\n     @users = @group.users\n+    @message = Message.new\n+    @messages = @group.messages\n+  end\n+\n+  def create\n+    message = current_user.messages.new(create_params)\n+    if message.save","path":"app/controllers/messages_controller.rb","position":10,"original_position":10,"commit_id":"fa843aef51790e2aec93da3286587ff7ddf7b3dd","original_commit_id":"fa843aef51790e2aec93da3286587ff7ddf7b3dd","user":{"login":"t-kusakabe","id":15696030,"avatar_url":"https://avatars3.githubusercontent.com/u/15696030?v=3","gravatar_id":"","url":"https://api.github.com/users/t-kusakabe","html_url":"https://github.com/t-kusakabe","followers_url":"https://api.github.com/users/t-kusakabe/followers","following_url":"https://api.github.com/users/t-kusakabe/following{/other_user}","gists_url":"https://api.github.com/users/t-kusakabe/gists{/gist_id}","starred_url":"https://api.github.com/users/t-kusakabe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t-kusakabe/subscriptions","organizations_url":"https://api.github.com/users/t-kusakabe/orgs","repos_url":"https://api.github.com/users/t-kusakabe/repos","events_url":"https://api.github.com/users/t-kusakabe/events{/privacy}","received_events_url":"https://api.github.com/users/t-kusakabe/received_events","type":"User","site_admin":false},"body":"保存できなかった時の処理はいりませんか？","created_at":"2017-04-26T12:42:13Z","updated_at":"2017-04-26T12:43:01Z","html_url":"https://github.com/hukuikoki/chat-space/pull/9#discussion_r113440511","pull_request_url":"https://api.github.com/repos/hukuikoki/chat-space/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/hukuikoki/chat-space/pulls/comments/113440511"},"html":{"href":"https://github.com/hukuikoki/chat-space/pull/9#discussion_r113440511"},"pull_request":{"href":"https://api.github.com/repos/hukuikoki/chat-space/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/hukuikoki/chat-space/pulls/9","id":117634990,"html_url":"https://github.com/hukuikoki/chat-space/pull/9","diff_url":"https://github.com/hukuikoki/chat-space/pull/9.diff","patch_url":"https://github.com/hukuikoki/chat-space/pull/9.patch","issue_url":"https://api.github.com/repos/hukuikoki/chat-space/issues/9","number":9,"state":"open","locked":false,"title":"Function send message","user":{"login":"hukuikoki","id":25639028,"avatar_url":"https://avatars1.githubusercontent.com/u/25639028?v=3","gravatar_id":"","url":"https://api.github.com/users/hukuikoki","html_url":"https://github.com/hukuikoki","followers_url":"https://api.github.com/users/hukuikoki/followers","following_url":"https://api.github.com/users/hukuikoki/following{/other_user}","gists_url":"https://api.github.com/users/hukuikoki/gists{/gist_id}","starred_url":"https://api.github.com/users/hukuikoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hukuikoki/subscriptions","organizations_url":"https://api.github.com/users/hukuikoki/orgs","repos_url":"https://api.github.com/users/hukuikoki/repos","events_url":"https://api.github.com/users/hukuikoki/events{/privacy}","received_events_url":"https://api.github.com/users/hukuikoki/received_events","type":"User","site_admin":false},"body":"## What\nメッセージ送信機能を作成した。\n\n## Why\nメッセージを読んだり、送ったりするため。 ","created_at":"2017-04-26T05:38:45Z","updated_at":"2017-04-26T12:43:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"061a04670ecb8e086035c47cb62f9ef98efb9706","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hukuikoki/chat-space/pulls/9/commits","review_comments_url":"https://api.github.com/repos/hukuikoki/chat-space/pulls/9/comments","review_comment_url":"https://api.github.com/repos/hukuikoki/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hukuikoki/chat-space/issues/9/comments","statuses_url":"https://api.github.com/repos/hukuikoki/chat-space/statuses/fa843aef51790e2aec93da3286587ff7ddf7b3dd","head":{"label":"hukuikoki:function-send-message","ref":"function-send-message","sha":"fa843aef51790e2aec93da3286587ff7ddf7b3dd","user":{"login":"hukuikoki","id":25639028,"avatar_url":"https://avatars1.githubusercontent.com/u/25639028?v=3","gravatar_id":"","url":"https://api.github.com/users/hukuikoki","html_url":"https://github.com/hukuikoki","followers_url":"https://api.github.com/users/hukuikoki/followers","following_url":"https://api.github.com/users/hukuikoki/following{/other_user}","gists_url":"https://api.github.com/users/hukuikoki/gists{/gist_id}","starred_url":"https://api.github.com/users/hukuikoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hukuikoki/subscriptions","organizations_url":"https://api.github.com/users/hukuikoki/orgs","repos_url":"https://api.github.com/users/hukuikoki/repos","events_url":"https://api.github.com/users/hukuikoki/events{/privacy}","received_events_url":"https://api.github.com/users/hukuikoki/received_events","type":"User","site_admin":false},"repo":{"id":84809752,"name":"chat-space","full_name":"hukuikoki/chat-space","owner":{"login":"hukuikoki","id":25639028,"avatar_url":"https://avatars1.githubusercontent.com/u/25639028?v=3","gravatar_id":"","url":"https://api.github.com/users/hukuikoki","html_url":"https://github.com/hukuikoki","followers_url":"https://api.github.com/users/hukuikoki/followers","following_url":"https://api.github.com/users/hukuikoki/following{/other_user}","gists_url":"https://api.github.com/users/hukuikoki/gists{/gist_id}","starred_url":"https://api.github.com/users/hukuikoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hukuikoki/subscriptions","organizations_url":"https://api.github.com/users/hukuikoki/orgs","repos_url":"https://api.github.com/users/hukuikoki/repos","events_url":"https://api.github.com/users/hukuikoki/events{/privacy}","received_events_url":"https://api.github.com/users/hukuikoki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hukuikoki/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/hukuikoki/chat-space","forks_url":"https://api.github.com/repos/hukuikoki/chat-space/forks","keys_url":"https://api.github.com/repos/hukuikoki/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hukuikoki/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hukuikoki/chat-space/teams","hooks_url":"https://api.github.com/repos/hukuikoki/chat-space/hooks","issue_events_url":"https://api.github.com/repos/hukuikoki/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/hukuikoki/chat-space/events","assignees_url":"https://api.github.com/repos/hukuikoki/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/hukuikoki/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/hukuikoki/chat-space/tags","blobs_url":"https://api.github.com/repos/hukuikoki/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hukuikoki/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hukuikoki/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/hukuikoki/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hukuikoki/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/hukuikoki/chat-space/languages","stargazers_url":"https://api.github.com/repos/hukuikoki/chat-space/stargazers","contributors_url":"https://api.github.com/repos/hukuikoki/chat-space/contributors","subscribers_url":"https://api.github.com/repos/hukuikoki/chat-space/subscribers","subscription_url":"https://api.github.com/repos/hukuikoki/chat-space/subscription","commits_url":"https://api.github.com/repos/hukuikoki/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/hukuikoki/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/hukuikoki/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/hukuikoki/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/hukuikoki/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/hukuikoki/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hukuikoki/chat-space/merges","archive_url":"https://api.github.com/repos/hukuikoki/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hukuikoki/chat-space/downloads","issues_url":"https://api.github.com/repos/hukuikoki/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/hukuikoki/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/hukuikoki/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/hukuikoki/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hukuikoki/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/hukuikoki/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/hukuikoki/chat-space/deployments","created_at":"2017-03-13T09:47:04Z","updated_at":"2017-03-13T09:47:14Z","pushed_at":"2017-04-26T05:38:46Z","git_url":"git://github.com/hukuikoki/chat-space.git","ssh_url":"git@github.com:hukuikoki/chat-space.git","clone_url":"https://github.com/hukuikoki/chat-space.git","svn_url":"https://github.com/hukuikoki/chat-space","homepage":null,"size":94,"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":"hukuikoki:master","ref":"master","sha":"395e651d2f04da4bce3e889654a0722cee9cde29","user":{"login":"hukuikoki","id":25639028,"avatar_url":"https://avatars1.githubusercontent.com/u/25639028?v=3","gravatar_id":"","url":"https://api.github.com/users/hukuikoki","html_url":"https://github.com/hukuikoki","followers_url":"https://api.github.com/users/hukuikoki/followers","following_url":"https://api.github.com/users/hukuikoki/following{/other_user}","gists_url":"https://api.github.com/users/hukuikoki/gists{/gist_id}","starred_url":"https://api.github.com/users/hukuikoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hukuikoki/subscriptions","organizations_url":"https://api.github.com/users/hukuikoki/orgs","repos_url":"https://api.github.com/users/hukuikoki/repos","events_url":"https://api.github.com/users/hukuikoki/events{/privacy}","received_events_url":"https://api.github.com/users/hukuikoki/received_events","type":"User","site_admin":false},"repo":{"id":84809752,"name":"chat-space","full_name":"hukuikoki/chat-space","owner":{"login":"hukuikoki","id":25639028,"avatar_url":"https://avatars1.githubusercontent.com/u/25639028?v=3","gravatar_id":"","url":"https://api.github.com/users/hukuikoki","html_url":"https://github.com/hukuikoki","followers_url":"https://api.github.com/users/hukuikoki/followers","following_url":"https://api.github.com/users/hukuikoki/following{/other_user}","gists_url":"https://api.github.com/users/hukuikoki/gists{/gist_id}","starred_url":"https://api.github.com/users/hukuikoki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hukuikoki/subscriptions","organizations_url":"https://api.github.com/users/hukuikoki/orgs","repos_url":"https://api.github.com/users/hukuikoki/repos","events_url":"https://api.github.com/users/hukuikoki/events{/privacy}","received_events_url":"https://api.github.com/users/hukuikoki/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hukuikoki/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/hukuikoki/chat-space","forks_url":"https://api.github.com/repos/hukuikoki/chat-space/forks","keys_url":"https://api.github.com/repos/hukuikoki/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hukuikoki/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hukuikoki/chat-space/teams","hooks_url":"https://api.github.com/repos/hukuikoki/chat-space/hooks","issue_events_url":"https://api.github.com/repos/hukuikoki/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/hukuikoki/chat-space/events","assignees_url":"https://api.github.com/repos/hukuikoki/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/hukuikoki/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/hukuikoki/chat-space/tags","blobs_url":"https://api.github.com/repos/hukuikoki/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hukuikoki/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hukuikoki/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/hukuikoki/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hukuikoki/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/hukuikoki/chat-space/languages","stargazers_url":"https://api.github.com/repos/hukuikoki/chat-space/stargazers","contributors_url":"https://api.github.com/repos/hukuikoki/chat-space/contributors","subscribers_url":"https://api.github.com/repos/hukuikoki/chat-space/subscribers","subscription_url":"https://api.github.com/repos/hukuikoki/chat-space/subscription","commits_url":"https://api.github.com/repos/hukuikoki/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/hukuikoki/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/hukuikoki/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/hukuikoki/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/hukuikoki/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/hukuikoki/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hukuikoki/chat-space/merges","archive_url":"https://api.github.com/repos/hukuikoki/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hukuikoki/chat-space/downloads","issues_url":"https://api.github.com/repos/hukuikoki/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/hukuikoki/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/hukuikoki/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/hukuikoki/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hukuikoki/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/hukuikoki/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/hukuikoki/chat-space/deployments","created_at":"2017-03-13T09:47:04Z","updated_at":"2017-03-13T09:47:14Z","pushed_at":"2017-04-26T05:38:46Z","git_url":"git://github.com/hukuikoki/chat-space.git","ssh_url":"git@github.com:hukuikoki/chat-space.git","clone_url":"https://github.com/hukuikoki/chat-space.git","svn_url":"https://github.com/hukuikoki/chat-space","homepage":null,"size":94,"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/hukuikoki/chat-space/pulls/9"},"html":{"href":"https://github.com/hukuikoki/chat-space/pull/9"},"issue":{"href":"https://api.github.com/repos/hukuikoki/chat-space/issues/9"},"comments":{"href":"https://api.github.com/repos/hukuikoki/chat-space/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/hukuikoki/chat-space/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/hukuikoki/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hukuikoki/chat-space/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/hukuikoki/chat-space/statuses/fa843aef51790e2aec93da3286587ff7ddf7b3dd"}}}}
{"actor":{"display_login":"t-kusakabe"}}