{"action":"created","comment":{"url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/comments/187513751","pull_request_review_id":119310436,"id":187513751,"diff_hunk":"@@ -4,48 +4,35 @@\n .side\n   .side__data\n     .side__data__user samplename\n-    .fa-edit\n-    .fa-cogs\n+    = link_to '' do\n+      %i.fa-edit\n+    = link_to '' do\n+      %i.fa-cogs\n \n   .side__bottom\n-    .side__bottom__info sample\n-    %p.g_name sample\n-    .side__bottom__info sample\n-    %p.g_name sample\n-    .side__bottom__info sample\n-    %p.g_name sample\n-    .side__bottom__info sample\n-    %p.g_name sample\n-\n-\n-\n-.chatbox\n-  .chatbox__top\n-    .namebox sample-name\n-    %a.edit.groups  edit\n-    %p.memberbox MEMBER:sample\n-\n-  .chatbox__main\n-    .box1\n-      .tname  sample12\n-      .date  2018/5/9\n-      %p.tweet samplea\n-    .box\n-      .tname  sample15\n-      .date  2018/5/9\n-      %p.tweet sampleb\n-    .box\n-      .tname  sample15\n-      .date  2018/5/9\n-      %p.tweet samplec\n-    .box\n-      .tname  sample15\n-      .date  2018/5/9\n-      %p.tweet sampled\n-\n-  .chatbox__footer\n-    .chatbox__footer__sendbox\n-      .chatbox__footer__sendbox__message\n-        type a message\n-        .fa.fa-image\n-    .chatbox__footer__send send\n+    = render 'messages/side'","path":"app/views/messages/index.html.haml","position":53,"original_position":53,"commit_id":"7e921f3227af68fe88dce48f4ce9de01a72e0397","original_commit_id":"7e921f3227af68fe88dce48f4ce9de01a72e0397","user":{"login":"ShuheiTsuji","id":16604920,"avatar_url":"https://avatars1.githubusercontent.com/u/16604920?v=4","gravatar_id":"","url":"https://api.github.com/users/ShuheiTsuji","html_url":"https://github.com/ShuheiTsuji","followers_url":"https://api.github.com/users/ShuheiTsuji/followers","following_url":"https://api.github.com/users/ShuheiTsuji/following{/other_user}","gists_url":"https://api.github.com/users/ShuheiTsuji/gists{/gist_id}","starred_url":"https://api.github.com/users/ShuheiTsuji/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShuheiTsuji/subscriptions","organizations_url":"https://api.github.com/users/ShuheiTsuji/orgs","repos_url":"https://api.github.com/users/ShuheiTsuji/repos","events_url":"https://api.github.com/users/ShuheiTsuji/events{/privacy}","received_events_url":"https://api.github.com/users/ShuheiTsuji/received_events","type":"User","site_admin":false},"body":"render ですが、ここはこの使用方法が適切ではありません。\r\nrender自体そもそも処理が重くなることが多く、使用の際には注意が必要です。\r\n\r\n今回だと、render の後に インスタンス変数 @messages を渡し collection option で分割するのが最適でしょう。\r\n( option に関してはリファレンス等に記述しています。また option は省略できるため基本的に collection は記述しないことが多いです。optionばかりで話が掴みにくいかもしれませんが、render に関する記述を見ると必ず載っています。)\r\n\r\n今回であれば、デモ用なので 3.times do |i| といった形で iterator で回してあげるのが良いかと思います。\r\nこのように同じ記述を複数回記述するのはあまり良くないので、デモ用から記述の注意が必要です！","created_at":"2018-05-11T03:40:18Z","updated_at":"2018-05-11T03:40:25Z","html_url":"https://github.com/miurakeisuke/chat-space2/pull/1#discussion_r187513751","pull_request_url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/comments/187513751"},"html":{"href":"https://github.com/miurakeisuke/chat-space2/pull/1#discussion_r187513751"},"pull_request":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1","id":187070488,"html_url":"https://github.com/miurakeisuke/chat-space2/pull/1","diff_url":"https://github.com/miurakeisuke/chat-space2/pull/1.diff","patch_url":"https://github.com/miurakeisuke/chat-space2/pull/1.patch","issue_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/1","number":1,"state":"open","locked":false,"title":"Edit classname","user":{"login":"miurakeisuke","id":38871772,"avatar_url":"https://avatars0.githubusercontent.com/u/38871772?v=4","gravatar_id":"","url":"https://api.github.com/users/miurakeisuke","html_url":"https://github.com/miurakeisuke","followers_url":"https://api.github.com/users/miurakeisuke/followers","following_url":"https://api.github.com/users/miurakeisuke/following{/other_user}","gists_url":"https://api.github.com/users/miurakeisuke/gists{/gist_id}","starred_url":"https://api.github.com/users/miurakeisuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miurakeisuke/subscriptions","organizations_url":"https://api.github.com/users/miurakeisuke/orgs","repos_url":"https://api.github.com/users/miurakeisuke/repos","events_url":"https://api.github.com/users/miurakeisuke/events{/privacy}","received_events_url":"https://api.github.com/users/miurakeisuke/received_events","type":"User","site_admin":false},"body":"#WHAT\nChatspace画面の実装\n#WHY\n必須機能のため","created_at":"2018-05-10T00:03:44Z","updated_at":"2018-05-11T03:40:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a01172e2d97e79e3948929d4629237b8001d937","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1/commits","review_comments_url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1/comments","review_comment_url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/1/comments","statuses_url":"https://api.github.com/repos/miurakeisuke/chat-space2/statuses/7e921f3227af68fe88dce48f4ce9de01a72e0397","head":{"label":"miurakeisuke:visual","ref":"visual","sha":"7e921f3227af68fe88dce48f4ce9de01a72e0397","user":{"login":"miurakeisuke","id":38871772,"avatar_url":"https://avatars0.githubusercontent.com/u/38871772?v=4","gravatar_id":"","url":"https://api.github.com/users/miurakeisuke","html_url":"https://github.com/miurakeisuke","followers_url":"https://api.github.com/users/miurakeisuke/followers","following_url":"https://api.github.com/users/miurakeisuke/following{/other_user}","gists_url":"https://api.github.com/users/miurakeisuke/gists{/gist_id}","starred_url":"https://api.github.com/users/miurakeisuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miurakeisuke/subscriptions","organizations_url":"https://api.github.com/users/miurakeisuke/orgs","repos_url":"https://api.github.com/users/miurakeisuke/repos","events_url":"https://api.github.com/users/miurakeisuke/events{/privacy}","received_events_url":"https://api.github.com/users/miurakeisuke/received_events","type":"User","site_admin":false},"repo":{"id":132751518,"name":"chat-space2","full_name":"miurakeisuke/chat-space2","owner":{"login":"miurakeisuke","id":38871772,"avatar_url":"https://avatars0.githubusercontent.com/u/38871772?v=4","gravatar_id":"","url":"https://api.github.com/users/miurakeisuke","html_url":"https://github.com/miurakeisuke","followers_url":"https://api.github.com/users/miurakeisuke/followers","following_url":"https://api.github.com/users/miurakeisuke/following{/other_user}","gists_url":"https://api.github.com/users/miurakeisuke/gists{/gist_id}","starred_url":"https://api.github.com/users/miurakeisuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miurakeisuke/subscriptions","organizations_url":"https://api.github.com/users/miurakeisuke/orgs","repos_url":"https://api.github.com/users/miurakeisuke/repos","events_url":"https://api.github.com/users/miurakeisuke/events{/privacy}","received_events_url":"https://api.github.com/users/miurakeisuke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miurakeisuke/chat-space2","description":null,"fork":false,"url":"https://api.github.com/repos/miurakeisuke/chat-space2","forks_url":"https://api.github.com/repos/miurakeisuke/chat-space2/forks","keys_url":"https://api.github.com/repos/miurakeisuke/chat-space2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miurakeisuke/chat-space2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miurakeisuke/chat-space2/teams","hooks_url":"https://api.github.com/repos/miurakeisuke/chat-space2/hooks","issue_events_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/events{/number}","events_url":"https://api.github.com/repos/miurakeisuke/chat-space2/events","assignees_url":"https://api.github.com/repos/miurakeisuke/chat-space2/assignees{/user}","branches_url":"https://api.github.com/repos/miurakeisuke/chat-space2/branches{/branch}","tags_url":"https://api.github.com/repos/miurakeisuke/chat-space2/tags","blobs_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/refs{/sha}","trees_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miurakeisuke/chat-space2/statuses/{sha}","languages_url":"https://api.github.com/repos/miurakeisuke/chat-space2/languages","stargazers_url":"https://api.github.com/repos/miurakeisuke/chat-space2/stargazers","contributors_url":"https://api.github.com/repos/miurakeisuke/chat-space2/contributors","subscribers_url":"https://api.github.com/repos/miurakeisuke/chat-space2/subscribers","subscription_url":"https://api.github.com/repos/miurakeisuke/chat-space2/subscription","commits_url":"https://api.github.com/repos/miurakeisuke/chat-space2/commits{/sha}","git_commits_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/commits{/sha}","comments_url":"https://api.github.com/repos/miurakeisuke/chat-space2/comments{/number}","issue_comment_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/comments{/number}","contents_url":"https://api.github.com/repos/miurakeisuke/chat-space2/contents/{+path}","compare_url":"https://api.github.com/repos/miurakeisuke/chat-space2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miurakeisuke/chat-space2/merges","archive_url":"https://api.github.com/repos/miurakeisuke/chat-space2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miurakeisuke/chat-space2/downloads","issues_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues{/number}","pulls_url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls{/number}","milestones_url":"https://api.github.com/repos/miurakeisuke/chat-space2/milestones{/number}","notifications_url":"https://api.github.com/repos/miurakeisuke/chat-space2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miurakeisuke/chat-space2/labels{/name}","releases_url":"https://api.github.com/repos/miurakeisuke/chat-space2/releases{/id}","deployments_url":"https://api.github.com/repos/miurakeisuke/chat-space2/deployments","created_at":"2018-05-09T12:10:07Z","updated_at":"2018-05-09T12:10:18Z","pushed_at":"2018-05-11T03:30:01Z","git_url":"git://github.com/miurakeisuke/chat-space2.git","ssh_url":"git@github.com:miurakeisuke/chat-space2.git","clone_url":"https://github.com/miurakeisuke/chat-space2.git","svn_url":"https://github.com/miurakeisuke/chat-space2","homepage":null,"size":34,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"miurakeisuke:master","ref":"master","sha":"1b25fedf8689eb9f270b53d30ac08a61963d26e6","user":{"login":"miurakeisuke","id":38871772,"avatar_url":"https://avatars0.githubusercontent.com/u/38871772?v=4","gravatar_id":"","url":"https://api.github.com/users/miurakeisuke","html_url":"https://github.com/miurakeisuke","followers_url":"https://api.github.com/users/miurakeisuke/followers","following_url":"https://api.github.com/users/miurakeisuke/following{/other_user}","gists_url":"https://api.github.com/users/miurakeisuke/gists{/gist_id}","starred_url":"https://api.github.com/users/miurakeisuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miurakeisuke/subscriptions","organizations_url":"https://api.github.com/users/miurakeisuke/orgs","repos_url":"https://api.github.com/users/miurakeisuke/repos","events_url":"https://api.github.com/users/miurakeisuke/events{/privacy}","received_events_url":"https://api.github.com/users/miurakeisuke/received_events","type":"User","site_admin":false},"repo":{"id":132751518,"name":"chat-space2","full_name":"miurakeisuke/chat-space2","owner":{"login":"miurakeisuke","id":38871772,"avatar_url":"https://avatars0.githubusercontent.com/u/38871772?v=4","gravatar_id":"","url":"https://api.github.com/users/miurakeisuke","html_url":"https://github.com/miurakeisuke","followers_url":"https://api.github.com/users/miurakeisuke/followers","following_url":"https://api.github.com/users/miurakeisuke/following{/other_user}","gists_url":"https://api.github.com/users/miurakeisuke/gists{/gist_id}","starred_url":"https://api.github.com/users/miurakeisuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miurakeisuke/subscriptions","organizations_url":"https://api.github.com/users/miurakeisuke/orgs","repos_url":"https://api.github.com/users/miurakeisuke/repos","events_url":"https://api.github.com/users/miurakeisuke/events{/privacy}","received_events_url":"https://api.github.com/users/miurakeisuke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miurakeisuke/chat-space2","description":null,"fork":false,"url":"https://api.github.com/repos/miurakeisuke/chat-space2","forks_url":"https://api.github.com/repos/miurakeisuke/chat-space2/forks","keys_url":"https://api.github.com/repos/miurakeisuke/chat-space2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miurakeisuke/chat-space2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miurakeisuke/chat-space2/teams","hooks_url":"https://api.github.com/repos/miurakeisuke/chat-space2/hooks","issue_events_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/events{/number}","events_url":"https://api.github.com/repos/miurakeisuke/chat-space2/events","assignees_url":"https://api.github.com/repos/miurakeisuke/chat-space2/assignees{/user}","branches_url":"https://api.github.com/repos/miurakeisuke/chat-space2/branches{/branch}","tags_url":"https://api.github.com/repos/miurakeisuke/chat-space2/tags","blobs_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/refs{/sha}","trees_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miurakeisuke/chat-space2/statuses/{sha}","languages_url":"https://api.github.com/repos/miurakeisuke/chat-space2/languages","stargazers_url":"https://api.github.com/repos/miurakeisuke/chat-space2/stargazers","contributors_url":"https://api.github.com/repos/miurakeisuke/chat-space2/contributors","subscribers_url":"https://api.github.com/repos/miurakeisuke/chat-space2/subscribers","subscription_url":"https://api.github.com/repos/miurakeisuke/chat-space2/subscription","commits_url":"https://api.github.com/repos/miurakeisuke/chat-space2/commits{/sha}","git_commits_url":"https://api.github.com/repos/miurakeisuke/chat-space2/git/commits{/sha}","comments_url":"https://api.github.com/repos/miurakeisuke/chat-space2/comments{/number}","issue_comment_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/comments{/number}","contents_url":"https://api.github.com/repos/miurakeisuke/chat-space2/contents/{+path}","compare_url":"https://api.github.com/repos/miurakeisuke/chat-space2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miurakeisuke/chat-space2/merges","archive_url":"https://api.github.com/repos/miurakeisuke/chat-space2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miurakeisuke/chat-space2/downloads","issues_url":"https://api.github.com/repos/miurakeisuke/chat-space2/issues{/number}","pulls_url":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls{/number}","milestones_url":"https://api.github.com/repos/miurakeisuke/chat-space2/milestones{/number}","notifications_url":"https://api.github.com/repos/miurakeisuke/chat-space2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miurakeisuke/chat-space2/labels{/name}","releases_url":"https://api.github.com/repos/miurakeisuke/chat-space2/releases{/id}","deployments_url":"https://api.github.com/repos/miurakeisuke/chat-space2/deployments","created_at":"2018-05-09T12:10:07Z","updated_at":"2018-05-09T12:10:18Z","pushed_at":"2018-05-11T03:30:01Z","git_url":"git://github.com/miurakeisuke/chat-space2.git","ssh_url":"git@github.com:miurakeisuke/chat-space2.git","clone_url":"https://github.com/miurakeisuke/chat-space2.git","svn_url":"https://github.com/miurakeisuke/chat-space2","homepage":null,"size":34,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1"},"html":{"href":"https://github.com/miurakeisuke/chat-space2/pull/1"},"issue":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/1"},"comments":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/miurakeisuke/chat-space2/statuses/7e921f3227af68fe88dce48f4ce9de01a72e0397"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ShuheiTsuji"}}