{"action":"created","comment":{"url":"https://api.github.com/repos/kooootakp/chat-space/pulls/comments/110567347","pull_request_review_id":31749204,"id":110567347,"diff_hunk":"@@ -11,15 +13,30 @@ def edit\n   end\n \n   def create\n-     @group = Group.new(group_params)\n-      if @group.save\n-        redirect_to root_path(@group), notice: 'チャットグループが作成されました。'\n-      else\n-        flash.now[:alert] = 'チャットグループが正しく作成されませんでした。'\n-        render :new\n-      end\n+    @group = Group.new(group_params)\n+    if @group.save\n+      redirect_to group_messages_path(@group), notice: 'チャットグループが作成されました。'\n+    else\n+      flash.now[:alert] = 'チャットグループが正しく作成されませんでした。'\n+      render :new\n+    end\n+  end\n+\n+  def update\n+    if @group.update(group_params)\n+      redirect_to group_messages_path(@group), notice: 'チャットグループが更新されました。'\n+    else\n+      flash.now[:alert] = 'チャットグループが更新されませんでした'\n+      render :edit\n+    end\n   end\n \n+  def find_group\n+    @group = Group.find(params[:id])\n+  end\n+","path":"app/controllers/groups_controller.rb","position":40,"original_position":40,"commit_id":"4fff662dc5e7348a2d862579af76ccca1bb28d5f","original_commit_id":"4fff662dc5e7348a2d862579af76ccca1bb28d5f","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars3.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"body":"改行が多いので、1行にしましょう","created_at":"2017-04-10T03:41:48Z","updated_at":"2017-04-10T03:43:34Z","html_url":"https://github.com/kooootakp/chat-space/pull/9#discussion_r110567347","pull_request_url":"https://api.github.com/repos/kooootakp/chat-space/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/kooootakp/chat-space/pulls/comments/110567347"},"html":{"href":"https://github.com/kooootakp/chat-space/pull/9#discussion_r110567347"},"pull_request":{"href":"https://api.github.com/repos/kooootakp/chat-space/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/kooootakp/chat-space/pulls/9","id":115019895,"html_url":"https://github.com/kooootakp/chat-space/pull/9","diff_url":"https://github.com/kooootakp/chat-space/pull/9.diff","patch_url":"https://github.com/kooootakp/chat-space/pull/9.patch","issue_url":"https://api.github.com/repos/kooootakp/chat-space/issues/9","number":9,"state":"open","locked":false,"title":"Implement Function of Editing Group","user":{"login":"kooootakp","id":26731874,"avatar_url":"https://avatars2.githubusercontent.com/u/26731874?v=3","gravatar_id":"","url":"https://api.github.com/users/kooootakp","html_url":"https://github.com/kooootakp","followers_url":"https://api.github.com/users/kooootakp/followers","following_url":"https://api.github.com/users/kooootakp/following{/other_user}","gists_url":"https://api.github.com/users/kooootakp/gists{/gist_id}","starred_url":"https://api.github.com/users/kooootakp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kooootakp/subscriptions","organizations_url":"https://api.github.com/users/kooootakp/orgs","repos_url":"https://api.github.com/users/kooootakp/repos","events_url":"https://api.github.com/users/kooootakp/events{/privacy}","received_events_url":"https://api.github.com/users/kooootakp/received_events","type":"User","site_admin":false},"body":"# WHAT\nグループ編集機能の実装\n\n# WHY\n必要な機能のため","created_at":"2017-04-10T03:30:27Z","updated_at":"2017-04-10T03:43:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67bdca3d892acbf4535be41596c6421fce1f1379","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kooootakp/chat-space/pulls/9/commits","review_comments_url":"https://api.github.com/repos/kooootakp/chat-space/pulls/9/comments","review_comment_url":"https://api.github.com/repos/kooootakp/chat-space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kooootakp/chat-space/issues/9/comments","statuses_url":"https://api.github.com/repos/kooootakp/chat-space/statuses/4fff662dc5e7348a2d862579af76ccca1bb28d5f","head":{"label":"kooootakp:Implement-Function-of-Editing-Group","ref":"Implement-Function-of-Editing-Group","sha":"4fff662dc5e7348a2d862579af76ccca1bb28d5f","user":{"login":"kooootakp","id":26731874,"avatar_url":"https://avatars2.githubusercontent.com/u/26731874?v=3","gravatar_id":"","url":"https://api.github.com/users/kooootakp","html_url":"https://github.com/kooootakp","followers_url":"https://api.github.com/users/kooootakp/followers","following_url":"https://api.github.com/users/kooootakp/following{/other_user}","gists_url":"https://api.github.com/users/kooootakp/gists{/gist_id}","starred_url":"https://api.github.com/users/kooootakp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kooootakp/subscriptions","organizations_url":"https://api.github.com/users/kooootakp/orgs","repos_url":"https://api.github.com/users/kooootakp/repos","events_url":"https://api.github.com/users/kooootakp/events{/privacy}","received_events_url":"https://api.github.com/users/kooootakp/received_events","type":"User","site_admin":false},"repo":{"id":86429147,"name":"chat-space","full_name":"kooootakp/chat-space","owner":{"login":"kooootakp","id":26731874,"avatar_url":"https://avatars2.githubusercontent.com/u/26731874?v=3","gravatar_id":"","url":"https://api.github.com/users/kooootakp","html_url":"https://github.com/kooootakp","followers_url":"https://api.github.com/users/kooootakp/followers","following_url":"https://api.github.com/users/kooootakp/following{/other_user}","gists_url":"https://api.github.com/users/kooootakp/gists{/gist_id}","starred_url":"https://api.github.com/users/kooootakp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kooootakp/subscriptions","organizations_url":"https://api.github.com/users/kooootakp/orgs","repos_url":"https://api.github.com/users/kooootakp/repos","events_url":"https://api.github.com/users/kooootakp/events{/privacy}","received_events_url":"https://api.github.com/users/kooootakp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kooootakp/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/kooootakp/chat-space","forks_url":"https://api.github.com/repos/kooootakp/chat-space/forks","keys_url":"https://api.github.com/repos/kooootakp/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kooootakp/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kooootakp/chat-space/teams","hooks_url":"https://api.github.com/repos/kooootakp/chat-space/hooks","issue_events_url":"https://api.github.com/repos/kooootakp/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/kooootakp/chat-space/events","assignees_url":"https://api.github.com/repos/kooootakp/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/kooootakp/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/kooootakp/chat-space/tags","blobs_url":"https://api.github.com/repos/kooootakp/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kooootakp/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kooootakp/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/kooootakp/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kooootakp/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/kooootakp/chat-space/languages","stargazers_url":"https://api.github.com/repos/kooootakp/chat-space/stargazers","contributors_url":"https://api.github.com/repos/kooootakp/chat-space/contributors","subscribers_url":"https://api.github.com/repos/kooootakp/chat-space/subscribers","subscription_url":"https://api.github.com/repos/kooootakp/chat-space/subscription","commits_url":"https://api.github.com/repos/kooootakp/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/kooootakp/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/kooootakp/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/kooootakp/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/kooootakp/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/kooootakp/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kooootakp/chat-space/merges","archive_url":"https://api.github.com/repos/kooootakp/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kooootakp/chat-space/downloads","issues_url":"https://api.github.com/repos/kooootakp/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/kooootakp/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/kooootakp/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/kooootakp/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kooootakp/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/kooootakp/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/kooootakp/chat-space/deployments","created_at":"2017-03-28T07:34:03Z","updated_at":"2017-03-28T07:34:11Z","pushed_at":"2017-04-10T03:30:28Z","git_url":"git://github.com/kooootakp/chat-space.git","ssh_url":"git@github.com:kooootakp/chat-space.git","clone_url":"https://github.com/kooootakp/chat-space.git","svn_url":"https://github.com/kooootakp/chat-space","homepage":null,"size":69,"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":"kooootakp:master","ref":"master","sha":"1296431836714eb032ede4944707a2cada447dcc","user":{"login":"kooootakp","id":26731874,"avatar_url":"https://avatars2.githubusercontent.com/u/26731874?v=3","gravatar_id":"","url":"https://api.github.com/users/kooootakp","html_url":"https://github.com/kooootakp","followers_url":"https://api.github.com/users/kooootakp/followers","following_url":"https://api.github.com/users/kooootakp/following{/other_user}","gists_url":"https://api.github.com/users/kooootakp/gists{/gist_id}","starred_url":"https://api.github.com/users/kooootakp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kooootakp/subscriptions","organizations_url":"https://api.github.com/users/kooootakp/orgs","repos_url":"https://api.github.com/users/kooootakp/repos","events_url":"https://api.github.com/users/kooootakp/events{/privacy}","received_events_url":"https://api.github.com/users/kooootakp/received_events","type":"User","site_admin":false},"repo":{"id":86429147,"name":"chat-space","full_name":"kooootakp/chat-space","owner":{"login":"kooootakp","id":26731874,"avatar_url":"https://avatars2.githubusercontent.com/u/26731874?v=3","gravatar_id":"","url":"https://api.github.com/users/kooootakp","html_url":"https://github.com/kooootakp","followers_url":"https://api.github.com/users/kooootakp/followers","following_url":"https://api.github.com/users/kooootakp/following{/other_user}","gists_url":"https://api.github.com/users/kooootakp/gists{/gist_id}","starred_url":"https://api.github.com/users/kooootakp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kooootakp/subscriptions","organizations_url":"https://api.github.com/users/kooootakp/orgs","repos_url":"https://api.github.com/users/kooootakp/repos","events_url":"https://api.github.com/users/kooootakp/events{/privacy}","received_events_url":"https://api.github.com/users/kooootakp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kooootakp/chat-space","description":null,"fork":false,"url":"https://api.github.com/repos/kooootakp/chat-space","forks_url":"https://api.github.com/repos/kooootakp/chat-space/forks","keys_url":"https://api.github.com/repos/kooootakp/chat-space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kooootakp/chat-space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kooootakp/chat-space/teams","hooks_url":"https://api.github.com/repos/kooootakp/chat-space/hooks","issue_events_url":"https://api.github.com/repos/kooootakp/chat-space/issues/events{/number}","events_url":"https://api.github.com/repos/kooootakp/chat-space/events","assignees_url":"https://api.github.com/repos/kooootakp/chat-space/assignees{/user}","branches_url":"https://api.github.com/repos/kooootakp/chat-space/branches{/branch}","tags_url":"https://api.github.com/repos/kooootakp/chat-space/tags","blobs_url":"https://api.github.com/repos/kooootakp/chat-space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kooootakp/chat-space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kooootakp/chat-space/git/refs{/sha}","trees_url":"https://api.github.com/repos/kooootakp/chat-space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kooootakp/chat-space/statuses/{sha}","languages_url":"https://api.github.com/repos/kooootakp/chat-space/languages","stargazers_url":"https://api.github.com/repos/kooootakp/chat-space/stargazers","contributors_url":"https://api.github.com/repos/kooootakp/chat-space/contributors","subscribers_url":"https://api.github.com/repos/kooootakp/chat-space/subscribers","subscription_url":"https://api.github.com/repos/kooootakp/chat-space/subscription","commits_url":"https://api.github.com/repos/kooootakp/chat-space/commits{/sha}","git_commits_url":"https://api.github.com/repos/kooootakp/chat-space/git/commits{/sha}","comments_url":"https://api.github.com/repos/kooootakp/chat-space/comments{/number}","issue_comment_url":"https://api.github.com/repos/kooootakp/chat-space/issues/comments{/number}","contents_url":"https://api.github.com/repos/kooootakp/chat-space/contents/{+path}","compare_url":"https://api.github.com/repos/kooootakp/chat-space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kooootakp/chat-space/merges","archive_url":"https://api.github.com/repos/kooootakp/chat-space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kooootakp/chat-space/downloads","issues_url":"https://api.github.com/repos/kooootakp/chat-space/issues{/number}","pulls_url":"https://api.github.com/repos/kooootakp/chat-space/pulls{/number}","milestones_url":"https://api.github.com/repos/kooootakp/chat-space/milestones{/number}","notifications_url":"https://api.github.com/repos/kooootakp/chat-space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kooootakp/chat-space/labels{/name}","releases_url":"https://api.github.com/repos/kooootakp/chat-space/releases{/id}","deployments_url":"https://api.github.com/repos/kooootakp/chat-space/deployments","created_at":"2017-03-28T07:34:03Z","updated_at":"2017-03-28T07:34:11Z","pushed_at":"2017-04-10T03:30:28Z","git_url":"git://github.com/kooootakp/chat-space.git","ssh_url":"git@github.com:kooootakp/chat-space.git","clone_url":"https://github.com/kooootakp/chat-space.git","svn_url":"https://github.com/kooootakp/chat-space","homepage":null,"size":69,"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/kooootakp/chat-space/pulls/9"},"html":{"href":"https://github.com/kooootakp/chat-space/pull/9"},"issue":{"href":"https://api.github.com/repos/kooootakp/chat-space/issues/9"},"comments":{"href":"https://api.github.com/repos/kooootakp/chat-space/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/kooootakp/chat-space/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/kooootakp/chat-space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kooootakp/chat-space/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/kooootakp/chat-space/statuses/4fff662dc5e7348a2d862579af76ccca1bb28d5f"}}}}
{"actor":{"display_login":"kyohei0423"}}