{"action":"created","comment":{"url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/comments/86661574","pull_request_review_id":7311447,"id":86661574,"diff_hunk":"@@ -1,26 +1,42 @@\n class GroupsController < ApplicationController\n+  def index\n+    @groups = Group.all\n+    @message = Message.new\n+  end\n   def new\n     @group = Group.new\n   end\n   def create\n-    @group = Group.create(group_params)\n+    @group = Group.create(create_params)\n     if @group.save\n-      redirect_to messages_path\n+      redirect_to group_messages_path(@group), flash: {notice: 'グループが作成されました。'}\n     else\n       redirect_to action: 'new'\n+      flash[:alert] = 'グループの作成に失敗しました'\n     end\n   end\n   def edit\n-\n-  end\n-  def index\n-\n+    @group = Group.find(params[:id])\n+    @members = @group.members\n   end\n   def update\n+    @group = Group.find(params[:id])\n+    @members = @group.members\n+    if @group.update(update_params)\n+      redirect_to group_messages_path(@group), flash: {notice: '登録情報が変更されました。'}\n+    else\n+      redirect_to action: 'new'\n+      flash[:alert] = 'グループの作成に失敗しました'\n+    end\n+  end\n+  def show\n \n   end\n   private\n-  def group_params\n+  def update_params","path":"app/controllers/groups_controller.rb","position":43,"original_position":43,"commit_id":"1d811c398c21d0e311802607c25a9c249b49393c","original_commit_id":"1d811c398c21d0e311802607c25a9c249b49393c","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.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":"create_paramsと同じ記述内容なので、一つあれば良さそうです！\r\n両者で使えるようなメソッドの命名をしてあげてください〜","created_at":"2016-11-05T09:45:42Z","updated_at":"2016-11-05T09:45:42Z","html_url":"https://github.com/kotasugimoto/chat-space3/pull/15#discussion_r86661574","pull_request_url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/comments/86661574"},"html":{"href":"https://github.com/kotasugimoto/chat-space3/pull/15#discussion_r86661574"},"pull_request":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/15","id":92447898,"html_url":"https://github.com/kotasugimoto/chat-space3/pull/15","diff_url":"https://github.com/kotasugimoto/chat-space3/pull/15.diff","patch_url":"https://github.com/kotasugimoto/chat-space3/pull/15.patch","issue_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/15","number":15,"state":"open","locked":false,"title":"グループ機能に関する実装","user":{"login":"kotasugimoto","id":22768629,"avatar_url":"https://avatars.githubusercontent.com/u/22768629?v=3","gravatar_id":"","url":"https://api.github.com/users/kotasugimoto","html_url":"https://github.com/kotasugimoto","followers_url":"https://api.github.com/users/kotasugimoto/followers","following_url":"https://api.github.com/users/kotasugimoto/following{/other_user}","gists_url":"https://api.github.com/users/kotasugimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kotasugimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotasugimoto/subscriptions","organizations_url":"https://api.github.com/users/kotasugimoto/orgs","repos_url":"https://api.github.com/users/kotasugimoto/repos","events_url":"https://api.github.com/users/kotasugimoto/events{/privacy}","received_events_url":"https://api.github.com/users/kotasugimoto/received_events","type":"User","site_admin":false},"body":"# what\n - 親子関係の構築\n - groupのedit機能の実装\n - 作成時、編集時にメンバー追加機能の実装\n# why\n **アプリケーションに必須の機能のため**","created_at":"2016-11-05T09:29:40Z","updated_at":"2016-11-05T09:46:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a26fc453f7e0c0c3947e9fe60bac444d3ad19220","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/15/commits","review_comments_url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/15/comments","review_comment_url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/15/comments","statuses_url":"https://api.github.com/repos/kotasugimoto/chat-space3/statuses/1d811c398c21d0e311802607c25a9c249b49393c","head":{"label":"kotasugimoto:groupのedit機能","ref":"groupのedit機能","sha":"1d811c398c21d0e311802607c25a9c249b49393c","user":{"login":"kotasugimoto","id":22768629,"avatar_url":"https://avatars.githubusercontent.com/u/22768629?v=3","gravatar_id":"","url":"https://api.github.com/users/kotasugimoto","html_url":"https://github.com/kotasugimoto","followers_url":"https://api.github.com/users/kotasugimoto/followers","following_url":"https://api.github.com/users/kotasugimoto/following{/other_user}","gists_url":"https://api.github.com/users/kotasugimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kotasugimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotasugimoto/subscriptions","organizations_url":"https://api.github.com/users/kotasugimoto/orgs","repos_url":"https://api.github.com/users/kotasugimoto/repos","events_url":"https://api.github.com/users/kotasugimoto/events{/privacy}","received_events_url":"https://api.github.com/users/kotasugimoto/received_events","type":"User","site_admin":false},"repo":{"id":71107946,"name":"chat-space3","full_name":"kotasugimoto/chat-space3","owner":{"login":"kotasugimoto","id":22768629,"avatar_url":"https://avatars.githubusercontent.com/u/22768629?v=3","gravatar_id":"","url":"https://api.github.com/users/kotasugimoto","html_url":"https://github.com/kotasugimoto","followers_url":"https://api.github.com/users/kotasugimoto/followers","following_url":"https://api.github.com/users/kotasugimoto/following{/other_user}","gists_url":"https://api.github.com/users/kotasugimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kotasugimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotasugimoto/subscriptions","organizations_url":"https://api.github.com/users/kotasugimoto/orgs","repos_url":"https://api.github.com/users/kotasugimoto/repos","events_url":"https://api.github.com/users/kotasugimoto/events{/privacy}","received_events_url":"https://api.github.com/users/kotasugimoto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kotasugimoto/chat-space3","description":null,"fork":false,"url":"https://api.github.com/repos/kotasugimoto/chat-space3","forks_url":"https://api.github.com/repos/kotasugimoto/chat-space3/forks","keys_url":"https://api.github.com/repos/kotasugimoto/chat-space3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kotasugimoto/chat-space3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kotasugimoto/chat-space3/teams","hooks_url":"https://api.github.com/repos/kotasugimoto/chat-space3/hooks","issue_events_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/events{/number}","events_url":"https://api.github.com/repos/kotasugimoto/chat-space3/events","assignees_url":"https://api.github.com/repos/kotasugimoto/chat-space3/assignees{/user}","branches_url":"https://api.github.com/repos/kotasugimoto/chat-space3/branches{/branch}","tags_url":"https://api.github.com/repos/kotasugimoto/chat-space3/tags","blobs_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/refs{/sha}","trees_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kotasugimoto/chat-space3/statuses/{sha}","languages_url":"https://api.github.com/repos/kotasugimoto/chat-space3/languages","stargazers_url":"https://api.github.com/repos/kotasugimoto/chat-space3/stargazers","contributors_url":"https://api.github.com/repos/kotasugimoto/chat-space3/contributors","subscribers_url":"https://api.github.com/repos/kotasugimoto/chat-space3/subscribers","subscription_url":"https://api.github.com/repos/kotasugimoto/chat-space3/subscription","commits_url":"https://api.github.com/repos/kotasugimoto/chat-space3/commits{/sha}","git_commits_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/commits{/sha}","comments_url":"https://api.github.com/repos/kotasugimoto/chat-space3/comments{/number}","issue_comment_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/comments{/number}","contents_url":"https://api.github.com/repos/kotasugimoto/chat-space3/contents/{+path}","compare_url":"https://api.github.com/repos/kotasugimoto/chat-space3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kotasugimoto/chat-space3/merges","archive_url":"https://api.github.com/repos/kotasugimoto/chat-space3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kotasugimoto/chat-space3/downloads","issues_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues{/number}","pulls_url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls{/number}","milestones_url":"https://api.github.com/repos/kotasugimoto/chat-space3/milestones{/number}","notifications_url":"https://api.github.com/repos/kotasugimoto/chat-space3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kotasugimoto/chat-space3/labels{/name}","releases_url":"https://api.github.com/repos/kotasugimoto/chat-space3/releases{/id}","deployments_url":"https://api.github.com/repos/kotasugimoto/chat-space3/deployments","created_at":"2016-10-17T06:44:39Z","updated_at":"2016-10-17T06:44:49Z","pushed_at":"2016-11-05T09:29:40Z","git_url":"git://github.com/kotasugimoto/chat-space3.git","ssh_url":"git@github.com:kotasugimoto/chat-space3.git","clone_url":"https://github.com/kotasugimoto/chat-space3.git","svn_url":"https://github.com/kotasugimoto/chat-space3","homepage":null,"size":100,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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":"kotasugimoto:master","ref":"master","sha":"babd06f03a0c04dbe938d36428617c7ab440aef7","user":{"login":"kotasugimoto","id":22768629,"avatar_url":"https://avatars.githubusercontent.com/u/22768629?v=3","gravatar_id":"","url":"https://api.github.com/users/kotasugimoto","html_url":"https://github.com/kotasugimoto","followers_url":"https://api.github.com/users/kotasugimoto/followers","following_url":"https://api.github.com/users/kotasugimoto/following{/other_user}","gists_url":"https://api.github.com/users/kotasugimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kotasugimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotasugimoto/subscriptions","organizations_url":"https://api.github.com/users/kotasugimoto/orgs","repos_url":"https://api.github.com/users/kotasugimoto/repos","events_url":"https://api.github.com/users/kotasugimoto/events{/privacy}","received_events_url":"https://api.github.com/users/kotasugimoto/received_events","type":"User","site_admin":false},"repo":{"id":71107946,"name":"chat-space3","full_name":"kotasugimoto/chat-space3","owner":{"login":"kotasugimoto","id":22768629,"avatar_url":"https://avatars.githubusercontent.com/u/22768629?v=3","gravatar_id":"","url":"https://api.github.com/users/kotasugimoto","html_url":"https://github.com/kotasugimoto","followers_url":"https://api.github.com/users/kotasugimoto/followers","following_url":"https://api.github.com/users/kotasugimoto/following{/other_user}","gists_url":"https://api.github.com/users/kotasugimoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kotasugimoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotasugimoto/subscriptions","organizations_url":"https://api.github.com/users/kotasugimoto/orgs","repos_url":"https://api.github.com/users/kotasugimoto/repos","events_url":"https://api.github.com/users/kotasugimoto/events{/privacy}","received_events_url":"https://api.github.com/users/kotasugimoto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kotasugimoto/chat-space3","description":null,"fork":false,"url":"https://api.github.com/repos/kotasugimoto/chat-space3","forks_url":"https://api.github.com/repos/kotasugimoto/chat-space3/forks","keys_url":"https://api.github.com/repos/kotasugimoto/chat-space3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kotasugimoto/chat-space3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kotasugimoto/chat-space3/teams","hooks_url":"https://api.github.com/repos/kotasugimoto/chat-space3/hooks","issue_events_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/events{/number}","events_url":"https://api.github.com/repos/kotasugimoto/chat-space3/events","assignees_url":"https://api.github.com/repos/kotasugimoto/chat-space3/assignees{/user}","branches_url":"https://api.github.com/repos/kotasugimoto/chat-space3/branches{/branch}","tags_url":"https://api.github.com/repos/kotasugimoto/chat-space3/tags","blobs_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/refs{/sha}","trees_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kotasugimoto/chat-space3/statuses/{sha}","languages_url":"https://api.github.com/repos/kotasugimoto/chat-space3/languages","stargazers_url":"https://api.github.com/repos/kotasugimoto/chat-space3/stargazers","contributors_url":"https://api.github.com/repos/kotasugimoto/chat-space3/contributors","subscribers_url":"https://api.github.com/repos/kotasugimoto/chat-space3/subscribers","subscription_url":"https://api.github.com/repos/kotasugimoto/chat-space3/subscription","commits_url":"https://api.github.com/repos/kotasugimoto/chat-space3/commits{/sha}","git_commits_url":"https://api.github.com/repos/kotasugimoto/chat-space3/git/commits{/sha}","comments_url":"https://api.github.com/repos/kotasugimoto/chat-space3/comments{/number}","issue_comment_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/comments{/number}","contents_url":"https://api.github.com/repos/kotasugimoto/chat-space3/contents/{+path}","compare_url":"https://api.github.com/repos/kotasugimoto/chat-space3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kotasugimoto/chat-space3/merges","archive_url":"https://api.github.com/repos/kotasugimoto/chat-space3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kotasugimoto/chat-space3/downloads","issues_url":"https://api.github.com/repos/kotasugimoto/chat-space3/issues{/number}","pulls_url":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls{/number}","milestones_url":"https://api.github.com/repos/kotasugimoto/chat-space3/milestones{/number}","notifications_url":"https://api.github.com/repos/kotasugimoto/chat-space3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kotasugimoto/chat-space3/labels{/name}","releases_url":"https://api.github.com/repos/kotasugimoto/chat-space3/releases{/id}","deployments_url":"https://api.github.com/repos/kotasugimoto/chat-space3/deployments","created_at":"2016-10-17T06:44:39Z","updated_at":"2016-10-17T06:44:49Z","pushed_at":"2016-11-05T09:29:40Z","git_url":"git://github.com/kotasugimoto/chat-space3.git","ssh_url":"git@github.com:kotasugimoto/chat-space3.git","clone_url":"https://github.com/kotasugimoto/chat-space3.git","svn_url":"https://github.com/kotasugimoto/chat-space3","homepage":null,"size":100,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":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/kotasugimoto/chat-space3/pulls/15"},"html":{"href":"https://github.com/kotasugimoto/chat-space3/pull/15"},"issue":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/15"},"comments":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/kotasugimoto/chat-space3/statuses/1d811c398c21d0e311802607c25a9c249b49393c"}}}}
{"actor":{"display_login":"kyohei0423"}}