{"action":"created","comment":{"url":"https://api.github.com/repos/takahisa11/chat-space/pulls/comments/148497816","pull_request_review_id":73747267,"id":148497816,"diff_hunk":"@@ -1,42 +1,44 @@\n-.chat-group-form\n-  %h1 新規チャットグループ\n-  %form#new_chat_group.new_chat_group{\"accept-charset\" => \"UTF-8\", :action => \"/chat_groups\", :method => \"post\"}\n+= form_for(@group) do |f|\n+  .chat-group-form\n+    %h1 新規チャットグループ\n     .chat-group-form__errors\n-      %h2\n-        1件のエラーが発生しました。\n-        %ul\n-          %li エラーです\n-    .chat-group-form__field.clearfix\n-      .chat-group-form__field--left\n-        %label.chat-group-form__label{:for => \"chat_group_name\"} グループ名\n-      .chat-group-form__field--right\n-        %input#chat_group_name.chat-group-form__input{:name => \"chat_group[name]\", :placeholder => \"グループ名を入力してください\", :type => \"text\"}/\n-    .chat-group-form__field.clearfix\n-      / この部分はインクリメンタルサーチ（ユーザー追加の非同期化のときに使用します\n-      /\n-        <div class='chat-group-form__field--left'>\n-        <label class=\"chat-group-form__label\" for=\"chat_group_チャットメンバーを追加\">チャットメンバーを追加</label>\n-        </div>\n-        <div class='chat-group-form__field--right'>\n-        <div class='chat-group-form__search clearfix'>\n-        <input class='chat-group-form__input' id='user-search-field' placeholder='追加したいユーザー名を入力してください' type='text'>\n-        </div>\n-        <div id='user-search-result'></div>\n-        </div>\n-    .chat-group-form__field.clearfix\n-      .chat-group-form__field--left\n-        %label.chat-group-form__label{:for => \"chat_group_チャットメンバー\"} チャットメンバー\n-      .chat-group-form__field--right\n-        / グループ作成機能の追加時はここにcollection_check_boxesの記述を入れてください\n+      - if @group.errors.any?\n+        %h2\n+          1件のエラーが発生しました。グループ名を入力してください。\n+      .chat-group-form__field.clearfix\n+        .chat-group-form__field--left\n+          = f.label \"グループ名\", class: \"chat-group-form__label\"\n+        .chat-group-form__field--right\n+          = f.text_field :name, id: \"chat_group_name\", class: \"chat-group-form__input\", :placeholder => \"グループ名を入力してください\", :type => \"text\"\n+        .chat-group-form__field.clearfix\n         / この部分はインクリメンタルサーチ（ユーザー追加の非同期化のときに使用します\n         /\n-          <div id='chat-group-users'>\n-          <div class='chat-group-user clearfix' id='chat-group-user-22'>\n-          <input name='chat_group[user_ids][]' type='hidden' value='22'>\n-          <p class='chat-group-user__name'>seo_kyohei</p>\n+          <div class='chat-group-form__field--left'>\n+          <label class=\"chat-group-form__label\" for=\"chat_group_チャットメンバーを追加\">チャットメンバーを追加</label>\n           </div>\n+          <div class='chat-group-form__field--right'>\n+          <div class='chat-group-form__search clearfix'>\n+          <input class='chat-group-form__input' id='user-search-field' placeholder='追加したいユーザー名を入力してください' type='text'>\n           </div>\n-    .chat-group-form__field.clearfix\n-      .chat-group-form__field--left\n-      .chat-group-form__field--right\n-        %input.chat-group-form__action-btn{\"data-disable-with\" => \"Save\", :name => \"commit\", :type => \"submit\", :value => \"Save\"}/\n+          <div id='user-search-result'></div>\n+          </div>\n+        .chat-group-form__field.clearfix\n+          .chat-group-form__field--left\n+            %label.chat-group-form__label{:for => \"chat_group_チャットメンバー\"} チャットメンバー\n+          .chat-group-form__field--right\n+          / グループ作成機能の追加時はここにcollection_check_boxesの記述を入れてください\n+          .checkbox\n+            = collection_check_boxes(:group, :user_ids, User.all, :id, :name ) do |t|\n+              =t.label { t.check_box + t.text }\n+            / この部分はインクリメンタルサーチ（ユーザー追加の非同期化のときに使用します\n+            /\n+              <div id='chat-group-users'>\n+              <div class='chat-group-user clearfix' id='chat-group-user-22'>\n+              <input name='chat_group[user_ids][]' type='hidden' value='22'>\n+              <p class='chat-group-user__name'>seo_kyohei</p>\n+              </div>\n+              </div>\n+        .chat-group-form__field.clearfix\n+          .chat-group-form__field--left\n+          .chat-group-form__field--right\n+            = f.submit class:\"chat-group-form__action-btn\" , \"data-disable-with\" => \"Save\", :value => \"Save\"","path":"app/views/groups/new.html.haml","position":81,"original_position":81,"commit_id":"03c857e62aa4095cc59b688b898a9823d1fe71fe","original_commit_id":"03c857e62aa4095cc59b688b898a9823d1fe71fe","user":{"login":"Atsuyoshi-N","id":26040501,"avatar_url":"https://avatars3.githubusercontent.com/u/26040501?v=4","gravatar_id":"","url":"https://api.github.com/users/Atsuyoshi-N","html_url":"https://github.com/Atsuyoshi-N","followers_url":"https://api.github.com/users/Atsuyoshi-N/followers","following_url":"https://api.github.com/users/Atsuyoshi-N/following{/other_user}","gists_url":"https://api.github.com/users/Atsuyoshi-N/gists{/gist_id}","starred_url":"https://api.github.com/users/Atsuyoshi-N/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Atsuyoshi-N/subscriptions","organizations_url":"https://api.github.com/users/Atsuyoshi-N/orgs","repos_url":"https://api.github.com/users/Atsuyoshi-N/repos","events_url":"https://api.github.com/users/Atsuyoshi-N/events{/privacy}","received_events_url":"https://api.github.com/users/Atsuyoshi-N/received_events","type":"User","site_admin":false},"body":"ハッシュロケットの修正お願いします。","created_at":"2017-11-02T10:52:30Z","updated_at":"2017-11-02T10:53:00Z","html_url":"https://github.com/takahisa11/chat-space/pull/9#discussion_r148497816","pull_request_url":"https://api.github.com/repos/takahisa11/chat-space/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/takahisa11/chat-space/pulls/comments/148497816"},"html":{"href":"https://github.com/takahisa11/chat-space/pull/9#discussion_r148497816"},"pull_request":{"href":"https://api.github.com/repos/takahisa11/chat-space/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/takahisa11/chat-space/pulls/9","id":150020057,"html_url":"https://github.com/takahisa11/chat-space/pull/9","diff_url":"https://github.com/takahisa11/chat-space/pull/9.diff","patch_url":"https://github.com/takahisa11/chat-space/pull/9.patch","issue_url":"https://api.github.com/repos/takahisa11/chat-space/issues/9","number":9,"state":"open","locked":false,"title":"[WIP]グループ作成機能の実装","user":{"login":"takahisa11","id":32792276,"avatar_url":"https://avatars3.githubusercontent.com/u/32792276?v=4","gravatar_id":"","url":"https://api.github.com/users/takahisa11","html_url":"https://github.com/takahisa11","followers_url":"https://api.github.com/users/takahisa11/followers","following_url":"https://api.github.com/users/takahisa11/following{/other_user}","gists_url":"https://api.github.com/users/takahisa11/gists{/gist_id}","starred_url":"https://api.github.com/users/takahisa11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takahisa11/subscriptions","organizations_url":"https://api.github.com/users/takahisa11/orgs","repos_url":"https://api.github.com/users/takahisa11/repos","events_url":"https://api.github.com/users/takahisa11/events{/privacy}","received_events_url":"https://api.github.com/users/takahisa11/received_events","type":"User","site_admin":false},"body":"##What\nグループ作成機能の実装\n##Why\n必須機能のため","created_at":"2017-11-01T11:47:55Z","updated_at":"2017-11-02T10:53:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adcf049124132dca328c105d88c85f371d6a0387","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/takahisa11/chat-space/pulls/9/commits","review_comments_url":"https://api.github.com/repos/takahisa11/chat-space/pulls/9/comments","review_comment_url":"https://api.github.com/repos/takahisa11/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/takahisa11/chat-space/issues/9/comments","statuses_url":"https://api.github.com/repos/takahisa11/chat-space/statuses/03c857e62aa4095cc59b688b898a9823d1fe71fe","head":{"label":"takahisa11:グループ作成機能の実装","ref":"グループ作成機能の実装","sha":"03c857e62aa4095cc59b688b898a9823d1fe71fe","user":{"login":"takahisa11","id":32792276,"avatar_url":"https://avatars3.githubusercontent.com/u/32792276?v=4","gravatar_id":"","url":"https://api.github.com/users/takahisa11","html_url":"https://github.com/takahisa11","followers_url":"https://api.github.com/users/takahisa11/followers","following_url":"https://api.github.com/users/takahisa11/following{/other_user}","gists_url":"https://api.github.com/users/takahisa11/gists{/gist_id}","starred_url":"https://api.github.com/users/takahisa11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takahisa11/subscriptions","organizations_url":"https://api.github.com/users/takahisa11/orgs","repos_url":"https://api.github.com/users/takahisa11/repos","events_url":"https://api.github.com/users/takahisa11/events{/privacy}","received_events_url":"https://api.github.com/users/takahisa11/received_events","type":"User","site_admin":false},"repo":{"id":108095864,"name":"chat-space","full_name":"takahisa11/chat-space","owner":{"login":"takahisa11","id":32792276,"avatar_url":"https://avatars3.githubusercontent.com/u/32792276?v=4","gravatar_id":"","url":"https://api.github.com/users/takahisa11","html_url":"https://github.com/takahisa11","followers_url":"https://api.github.com/users/takahisa11/followers","following_url":"https://api.github.com/users/takahisa11/following{/other_user}","gists_url":"https://api.github.com/users/takahisa11/gists{/gist_id}","starred_url":"https://api.github.com/users/takahisa11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takahisa11/subscriptions","organizations_url":"https://api.github.com/users/takahisa11/orgs","repos_url":"https://api.github.com/users/takahisa11/repos","events_url":"https://api.github.com/users/takahisa11/events{/privacy}","received_events_url":"https://api.github.com/users/takahisa11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takahisa11/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/takahisa11/chat-space","forks_url":"https://api.github.com/repos/takahisa11/chat-space/forks","keys_url":"https://api.github.com/repos/takahisa11/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takahisa11/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takahisa11/chat-space/teams","hooks_url":"https://api.github.com/repos/takahisa11/chat-space/hooks","issue_events_url":"https://api.github.com/repos/takahisa11/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/takahisa11/chat-space/events","assignees_url":"https://api.github.com/repos/takahisa11/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/takahisa11/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/takahisa11/chat-space/tags","blobs_url":"https://api.github.com/repos/takahisa11/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takahisa11/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takahisa11/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/takahisa11/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takahisa11/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/takahisa11/chat-space/languages","stargazers_url":"https://api.github.com/repos/takahisa11/chat-space/stargazers","contributors_url":"https://api.github.com/repos/takahisa11/chat-space/contributors","subscribers_url":"https://api.github.com/repos/takahisa11/chat-space/subscribers","subscription_url":"https://api.github.com/repos/takahisa11/chat-space/subscription","commits_url":"https://api.github.com/repos/takahisa11/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/takahisa11/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/takahisa11/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/takahisa11/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/takahisa11/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/takahisa11/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takahisa11/chat-space/merges","archive_url":"https://api.github.com/repos/takahisa11/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takahisa11/chat-space/downloads","issues_url":"https://api.github.com/repos/takahisa11/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/takahisa11/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/takahisa11/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/takahisa11/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takahisa11/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/takahisa11/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/takahisa11/chat-space/deployments","created_at":"2017-10-24T08:03:52Z","updated_at":"2017-10-24T08:04:02Z","pushed_at":"2017-11-02T10:45:30Z","git_url":"git://github.com/takahisa11/chat-space.git","ssh_url":"git@github.com:takahisa11/chat-space.git","clone_url":"https://github.com/takahisa11/chat-space.git","svn_url":"https://github.com/takahisa11/chat-space","homepage":null,"size":89,"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,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"takahisa11:master","ref":"master","sha":"fd4b5a3d600edaa86a0a39053a7ca670999edc2f","user":{"login":"takahisa11","id":32792276,"avatar_url":"https://avatars3.githubusercontent.com/u/32792276?v=4","gravatar_id":"","url":"https://api.github.com/users/takahisa11","html_url":"https://github.com/takahisa11","followers_url":"https://api.github.com/users/takahisa11/followers","following_url":"https://api.github.com/users/takahisa11/following{/other_user}","gists_url":"https://api.github.com/users/takahisa11/gists{/gist_id}","starred_url":"https://api.github.com/users/takahisa11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takahisa11/subscriptions","organizations_url":"https://api.github.com/users/takahisa11/orgs","repos_url":"https://api.github.com/users/takahisa11/repos","events_url":"https://api.github.com/users/takahisa11/events{/privacy}","received_events_url":"https://api.github.com/users/takahisa11/received_events","type":"User","site_admin":false},"repo":{"id":108095864,"name":"chat-space","full_name":"takahisa11/chat-space","owner":{"login":"takahisa11","id":32792276,"avatar_url":"https://avatars3.githubusercontent.com/u/32792276?v=4","gravatar_id":"","url":"https://api.github.com/users/takahisa11","html_url":"https://github.com/takahisa11","followers_url":"https://api.github.com/users/takahisa11/followers","following_url":"https://api.github.com/users/takahisa11/following{/other_user}","gists_url":"https://api.github.com/users/takahisa11/gists{/gist_id}","starred_url":"https://api.github.com/users/takahisa11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takahisa11/subscriptions","organizations_url":"https://api.github.com/users/takahisa11/orgs","repos_url":"https://api.github.com/users/takahisa11/repos","events_url":"https://api.github.com/users/takahisa11/events{/privacy}","received_events_url":"https://api.github.com/users/takahisa11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/takahisa11/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/takahisa11/chat-space","forks_url":"https://api.github.com/repos/takahisa11/chat-space/forks","keys_url":"https://api.github.com/repos/takahisa11/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takahisa11/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takahisa11/chat-space/teams","hooks_url":"https://api.github.com/repos/takahisa11/chat-space/hooks","issue_events_url":"https://api.github.com/repos/takahisa11/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/takahisa11/chat-space/events","assignees_url":"https://api.github.com/repos/takahisa11/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/takahisa11/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/takahisa11/chat-space/tags","blobs_url":"https://api.github.com/repos/takahisa11/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takahisa11/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takahisa11/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/takahisa11/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takahisa11/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/takahisa11/chat-space/languages","stargazers_url":"https://api.github.com/repos/takahisa11/chat-space/stargazers","contributors_url":"https://api.github.com/repos/takahisa11/chat-space/contributors","subscribers_url":"https://api.github.com/repos/takahisa11/chat-space/subscribers","subscription_url":"https://api.github.com/repos/takahisa11/chat-space/subscription","commits_url":"https://api.github.com/repos/takahisa11/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/takahisa11/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/takahisa11/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/takahisa11/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/takahisa11/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/takahisa11/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takahisa11/chat-space/merges","archive_url":"https://api.github.com/repos/takahisa11/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takahisa11/chat-space/downloads","issues_url":"https://api.github.com/repos/takahisa11/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/takahisa11/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/takahisa11/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/takahisa11/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takahisa11/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/takahisa11/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/takahisa11/chat-space/deployments","created_at":"2017-10-24T08:03:52Z","updated_at":"2017-10-24T08:04:02Z","pushed_at":"2017-11-02T10:45:30Z","git_url":"git://github.com/takahisa11/chat-space.git","ssh_url":"git@github.com:takahisa11/chat-space.git","clone_url":"https://github.com/takahisa11/chat-space.git","svn_url":"https://github.com/takahisa11/chat-space","homepage":null,"size":89,"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,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/takahisa11/chat-space/pulls/9"},"html":{"href":"https://github.com/takahisa11/chat-space/pull/9"},"issue":{"href":"https://api.github.com/repos/takahisa11/chat-space/issues/9"},"comments":{"href":"https://api.github.com/repos/takahisa11/chat-space/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/takahisa11/chat-space/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/takahisa11/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/takahisa11/chat-space/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/takahisa11/chat-space/statuses/03c857e62aa4095cc59b688b898a9823d1fe71fe"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Atsuyoshi-N"}}