{"action":"created","comment":{"url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/comments/126928294","pull_request_review_id":49459614,"id":126928294,"diff_hunk":"@@ -25,6 +23,8 @@ def message_params\n \n   def set_group\n        @group = Group.find(params[:group_id])\n+       @groups = current_user.groups\n+       @messages = @group.messages.includes(:group)","path":"app/controllers/messages_controller.rb","position":21,"original_position":21,"commit_id":"50460b21c1cee31b31a863b7ae26bf5f35e19e5d","original_commit_id":"50460b21c1cee31b31a863b7ae26bf5f35e19e5d","user":{"login":"kenchantandf","id":24447274,"avatar_url":"https://avatars0.githubusercontent.com/u/24447274?v=3","gravatar_id":"","url":"https://api.github.com/users/kenchantandf","html_url":"https://github.com/kenchantandf","followers_url":"https://api.github.com/users/kenchantandf/followers","following_url":"https://api.github.com/users/kenchantandf/following{/other_user}","gists_url":"https://api.github.com/users/kenchantandf/gists{/gist_id}","starred_url":"https://api.github.com/users/kenchantandf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenchantandf/subscriptions","organizations_url":"https://api.github.com/users/kenchantandf/orgs","repos_url":"https://api.github.com/users/kenchantandf/repos","events_url":"https://api.github.com/users/kenchantandf/events{/privacy}","received_events_url":"https://api.github.com/users/kenchantandf/received_events","type":"User","site_admin":false},"body":"これも本来であれば@messages = @group.messagesで機能するはずです。原因を追求してみましょう！","created_at":"2017-07-12T11:23:00Z","updated_at":"2017-07-12T11:25:47Z","html_url":"https://github.com/Masahiro1515/chat-space/pull/18#discussion_r126928294","pull_request_url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/comments/126928294"},"html":{"href":"https://github.com/Masahiro1515/chat-space/pull/18#discussion_r126928294"},"pull_request":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18","id":130101628,"html_url":"https://github.com/Masahiro1515/chat-space/pull/18","diff_url":"https://github.com/Masahiro1515/chat-space/pull/18.diff","patch_url":"https://github.com/Masahiro1515/chat-space/pull/18.patch","issue_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues/18","number":18,"state":"open","locked":false,"title":"投稿したメッセージと写真が表示されるように実装","user":{"login":"Masahiro1515","id":29723371,"avatar_url":"https://avatars0.githubusercontent.com/u/29723371?v=3","gravatar_id":"","url":"https://api.github.com/users/Masahiro1515","html_url":"https://github.com/Masahiro1515","followers_url":"https://api.github.com/users/Masahiro1515/followers","following_url":"https://api.github.com/users/Masahiro1515/following{/other_user}","gists_url":"https://api.github.com/users/Masahiro1515/gists{/gist_id}","starred_url":"https://api.github.com/users/Masahiro1515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masahiro1515/subscriptions","organizations_url":"https://api.github.com/users/Masahiro1515/orgs","repos_url":"https://api.github.com/users/Masahiro1515/repos","events_url":"https://api.github.com/users/Masahiro1515/events{/privacy}","received_events_url":"https://api.github.com/users/Masahiro1515/received_events","type":"User","site_admin":false},"body":"# WHAT\n投稿したメッセージ、画像をチャット画面に表示されるように実装\n\n# WHY\nデータベースからビューにデータを持ってきて表示させるため","created_at":"2017-07-12T10:09:34Z","updated_at":"2017-07-12T11:25:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41d0763b9537ef7d764d060aea603a92a4d3a436","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18/commits","review_comments_url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18/comments","review_comment_url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues/18/comments","statuses_url":"https://api.github.com/repos/Masahiro1515/chat-space/statuses/50460b21c1cee31b31a863b7ae26bf5f35e19e5d","head":{"label":"Masahiro1515:Add_message-view-function","ref":"Add_message-view-function","sha":"50460b21c1cee31b31a863b7ae26bf5f35e19e5d","user":{"login":"Masahiro1515","id":29723371,"avatar_url":"https://avatars0.githubusercontent.com/u/29723371?v=3","gravatar_id":"","url":"https://api.github.com/users/Masahiro1515","html_url":"https://github.com/Masahiro1515","followers_url":"https://api.github.com/users/Masahiro1515/followers","following_url":"https://api.github.com/users/Masahiro1515/following{/other_user}","gists_url":"https://api.github.com/users/Masahiro1515/gists{/gist_id}","starred_url":"https://api.github.com/users/Masahiro1515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masahiro1515/subscriptions","organizations_url":"https://api.github.com/users/Masahiro1515/orgs","repos_url":"https://api.github.com/users/Masahiro1515/repos","events_url":"https://api.github.com/users/Masahiro1515/events{/privacy}","received_events_url":"https://api.github.com/users/Masahiro1515/received_events","type":"User","site_admin":false},"repo":{"id":95625295,"name":"chat-space","full_name":"Masahiro1515/chat-space","owner":{"login":"Masahiro1515","id":29723371,"avatar_url":"https://avatars0.githubusercontent.com/u/29723371?v=3","gravatar_id":"","url":"https://api.github.com/users/Masahiro1515","html_url":"https://github.com/Masahiro1515","followers_url":"https://api.github.com/users/Masahiro1515/followers","following_url":"https://api.github.com/users/Masahiro1515/following{/other_user}","gists_url":"https://api.github.com/users/Masahiro1515/gists{/gist_id}","starred_url":"https://api.github.com/users/Masahiro1515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masahiro1515/subscriptions","organizations_url":"https://api.github.com/users/Masahiro1515/orgs","repos_url":"https://api.github.com/users/Masahiro1515/repos","events_url":"https://api.github.com/users/Masahiro1515/events{/privacy}","received_events_url":"https://api.github.com/users/Masahiro1515/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Masahiro1515/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Masahiro1515/chat-space","forks_url":"https://api.github.com/repos/Masahiro1515/chat-space/forks","keys_url":"https://api.github.com/repos/Masahiro1515/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Masahiro1515/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Masahiro1515/chat-space/teams","hooks_url":"https://api.github.com/repos/Masahiro1515/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Masahiro1515/chat-space/events","assignees_url":"https://api.github.com/repos/Masahiro1515/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Masahiro1515/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Masahiro1515/chat-space/tags","blobs_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Masahiro1515/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Masahiro1515/chat-space/languages","stargazers_url":"https://api.github.com/repos/Masahiro1515/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Masahiro1515/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Masahiro1515/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Masahiro1515/chat-space/subscription","commits_url":"https://api.github.com/repos/Masahiro1515/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Masahiro1515/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Masahiro1515/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Masahiro1515/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Masahiro1515/chat-space/merges","archive_url":"https://api.github.com/repos/Masahiro1515/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Masahiro1515/chat-space/downloads","issues_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Masahiro1515/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Masahiro1515/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Masahiro1515/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Masahiro1515/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Masahiro1515/chat-space/deployments","created_at":"2017-06-28T03:33:34Z","updated_at":"2017-06-28T03:33:46Z","pushed_at":"2017-07-12T10:37:04Z","git_url":"git://github.com/Masahiro1515/chat-space.git","ssh_url":"git@github.com:Masahiro1515/chat-space.git","clone_url":"https://github.com/Masahiro1515/chat-space.git","svn_url":"https://github.com/Masahiro1515/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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Masahiro1515:master","ref":"master","sha":"b67d6a0ff2a7ce86e5dc8d4e6335717d465bb6dc","user":{"login":"Masahiro1515","id":29723371,"avatar_url":"https://avatars0.githubusercontent.com/u/29723371?v=3","gravatar_id":"","url":"https://api.github.com/users/Masahiro1515","html_url":"https://github.com/Masahiro1515","followers_url":"https://api.github.com/users/Masahiro1515/followers","following_url":"https://api.github.com/users/Masahiro1515/following{/other_user}","gists_url":"https://api.github.com/users/Masahiro1515/gists{/gist_id}","starred_url":"https://api.github.com/users/Masahiro1515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masahiro1515/subscriptions","organizations_url":"https://api.github.com/users/Masahiro1515/orgs","repos_url":"https://api.github.com/users/Masahiro1515/repos","events_url":"https://api.github.com/users/Masahiro1515/events{/privacy}","received_events_url":"https://api.github.com/users/Masahiro1515/received_events","type":"User","site_admin":false},"repo":{"id":95625295,"name":"chat-space","full_name":"Masahiro1515/chat-space","owner":{"login":"Masahiro1515","id":29723371,"avatar_url":"https://avatars0.githubusercontent.com/u/29723371?v=3","gravatar_id":"","url":"https://api.github.com/users/Masahiro1515","html_url":"https://github.com/Masahiro1515","followers_url":"https://api.github.com/users/Masahiro1515/followers","following_url":"https://api.github.com/users/Masahiro1515/following{/other_user}","gists_url":"https://api.github.com/users/Masahiro1515/gists{/gist_id}","starred_url":"https://api.github.com/users/Masahiro1515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Masahiro1515/subscriptions","organizations_url":"https://api.github.com/users/Masahiro1515/orgs","repos_url":"https://api.github.com/users/Masahiro1515/repos","events_url":"https://api.github.com/users/Masahiro1515/events{/privacy}","received_events_url":"https://api.github.com/users/Masahiro1515/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Masahiro1515/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/Masahiro1515/chat-space","forks_url":"https://api.github.com/repos/Masahiro1515/chat-space/forks","keys_url":"https://api.github.com/repos/Masahiro1515/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Masahiro1515/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Masahiro1515/chat-space/teams","hooks_url":"https://api.github.com/repos/Masahiro1515/chat-space/hooks","issue_events_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/Masahiro1515/chat-space/events","assignees_url":"https://api.github.com/repos/Masahiro1515/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/Masahiro1515/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/Masahiro1515/chat-space/tags","blobs_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Masahiro1515/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/Masahiro1515/chat-space/languages","stargazers_url":"https://api.github.com/repos/Masahiro1515/chat-space/stargazers","contributors_url":"https://api.github.com/repos/Masahiro1515/chat-space/contributors","subscribers_url":"https://api.github.com/repos/Masahiro1515/chat-space/subscribers","subscription_url":"https://api.github.com/repos/Masahiro1515/chat-space/subscription","commits_url":"https://api.github.com/repos/Masahiro1515/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/Masahiro1515/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/Masahiro1515/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/Masahiro1515/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/Masahiro1515/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Masahiro1515/chat-space/merges","archive_url":"https://api.github.com/repos/Masahiro1515/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Masahiro1515/chat-space/downloads","issues_url":"https://api.github.com/repos/Masahiro1515/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/Masahiro1515/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/Masahiro1515/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/Masahiro1515/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Masahiro1515/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/Masahiro1515/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/Masahiro1515/chat-space/deployments","created_at":"2017-06-28T03:33:34Z","updated_at":"2017-06-28T03:33:46Z","pushed_at":"2017-07-12T10:37:04Z","git_url":"git://github.com/Masahiro1515/chat-space.git","ssh_url":"git@github.com:Masahiro1515/chat-space.git","clone_url":"https://github.com/Masahiro1515/chat-space.git","svn_url":"https://github.com/Masahiro1515/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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18"},"html":{"href":"https://github.com/Masahiro1515/chat-space/pull/18"},"issue":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/issues/18"},"comments":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/Masahiro1515/chat-space/statuses/50460b21c1cee31b31a863b7ae26bf5f35e19e5d"}}}}
{"actor":{"display_login":"kenchantandf"}}