{"action":"created","comment":{"url":"https://api.github.com/repos/pokotyan/protospace/pulls/comments/81448216","pull_request_review_id":2430101,"id":81448216,"diff_hunk":"@@ -59,17 +59,17 @@ def create_params\n         :title,\n         :catch_copy,\n         :concept,\n-        images_attributes: [:image,:status]\n-      ).merge(user_id: current_user.id)\n+        images_attributes: [:image,:status],\n+      ).merge(user_id: current_user.id).merge(tag_list: params[:prototype][:tag])\n     end\n \n     def update_params\n       params.require(:prototype).permit(\n         :title,\n         :catch_copy,\n         :concept,\n-        images_attributes: [:id,:image,:status] #idも受け取るようにしないとUnpermitted parameter:id\n-      )\n+        images_attributes: [:id,:image,:status], #idも受け取るようにしないとUnpermitted parameter:id\n+      ).merge(tag_list: params[:prototype][:tag])\n     end","path":"app/controllers/prototypes_controller.rb","position":18,"original_position":19,"commit_id":"309a91fdf6d8415dd645af7ed499df297cf52e7a","original_commit_id":"309a91fdf6d8415dd645af7ed499df297cf52e7a","user":{"login":"DaikiInaba","id":19761679,"avatar_url":"https://avatars.githubusercontent.com/u/19761679?v=3","gravatar_id":"","url":"https://api.github.com/users/DaikiInaba","html_url":"https://github.com/DaikiInaba","followers_url":"https://api.github.com/users/DaikiInaba/followers","following_url":"https://api.github.com/users/DaikiInaba/following{/other_user}","gists_url":"https://api.github.com/users/DaikiInaba/gists{/gist_id}","starred_url":"https://api.github.com/users/DaikiInaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaikiInaba/subscriptions","organizations_url":"https://api.github.com/users/DaikiInaba/orgs","repos_url":"https://api.github.com/users/DaikiInaba/repos","events_url":"https://api.github.com/users/DaikiInaba/events{/privacy}","received_events_url":"https://api.github.com/users/DaikiInaba/received_events","type":"User","site_admin":false},"body":"prototypeでrequireしたパラメータにparams[:prototype][:tag]をマージさせるのは非常に冗長なので、もっと簡潔に書けないか試してみてください！","created_at":"2016-10-01T10:55:09Z","updated_at":"2016-10-01T10:59:42Z","html_url":"https://github.com/pokotyan/protospace/pull/12#discussion_r81448216","pull_request_url":"https://api.github.com/repos/pokotyan/protospace/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/pokotyan/protospace/pulls/comments/81448216"},"html":{"href":"https://github.com/pokotyan/protospace/pull/12#discussion_r81448216"},"pull_request":{"href":"https://api.github.com/repos/pokotyan/protospace/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/pokotyan/protospace/pulls/12","id":87594137,"html_url":"https://github.com/pokotyan/protospace/pull/12","diff_url":"https://github.com/pokotyan/protospace/pull/12.diff","patch_url":"https://github.com/pokotyan/protospace/pull/12.patch","issue_url":"https://api.github.com/repos/pokotyan/protospace/issues/12","number":12,"state":"open","locked":false,"title":"タグ管理機能の追加","user":{"login":"pokotyan","id":20484619,"avatar_url":"https://avatars.githubusercontent.com/u/20484619?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyan","html_url":"https://github.com/pokotyan","followers_url":"https://api.github.com/users/pokotyan/followers","following_url":"https://api.github.com/users/pokotyan/following{/other_user}","gists_url":"https://api.github.com/users/pokotyan/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyan/subscriptions","organizations_url":"https://api.github.com/users/pokotyan/orgs","repos_url":"https://api.github.com/users/pokotyan/repos","events_url":"https://api.github.com/users/pokotyan/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyan/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nprototypeにタグ付けができるようにする。\r\n\r\n# WHY\r\nprototypeをジャンル別に閲覧、管理するため。","created_at":"2016-10-01T06:59:30Z","updated_at":"2016-10-01T10:59:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"685a74d7fdd7eec21f01d6350d2f095605c9f302","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pokotyan/protospace/pulls/12/commits","review_comments_url":"https://api.github.com/repos/pokotyan/protospace/pulls/12/comments","review_comment_url":"https://api.github.com/repos/pokotyan/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pokotyan/protospace/issues/12/comments","statuses_url":"https://api.github.com/repos/pokotyan/protospace/statuses/309a91fdf6d8415dd645af7ed499df297cf52e7a","head":{"label":"pokotyan:タグ管理機能の追加","ref":"タグ管理機能の追加","sha":"309a91fdf6d8415dd645af7ed499df297cf52e7a","user":{"login":"pokotyan","id":20484619,"avatar_url":"https://avatars.githubusercontent.com/u/20484619?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyan","html_url":"https://github.com/pokotyan","followers_url":"https://api.github.com/users/pokotyan/followers","following_url":"https://api.github.com/users/pokotyan/following{/other_user}","gists_url":"https://api.github.com/users/pokotyan/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyan/subscriptions","organizations_url":"https://api.github.com/users/pokotyan/orgs","repos_url":"https://api.github.com/users/pokotyan/repos","events_url":"https://api.github.com/users/pokotyan/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyan/received_events","type":"User","site_admin":false},"repo":{"id":67856052,"name":"protospace","full_name":"pokotyan/protospace","owner":{"login":"pokotyan","id":20484619,"avatar_url":"https://avatars.githubusercontent.com/u/20484619?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyan","html_url":"https://github.com/pokotyan","followers_url":"https://api.github.com/users/pokotyan/followers","following_url":"https://api.github.com/users/pokotyan/following{/other_user}","gists_url":"https://api.github.com/users/pokotyan/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyan/subscriptions","organizations_url":"https://api.github.com/users/pokotyan/orgs","repos_url":"https://api.github.com/users/pokotyan/repos","events_url":"https://api.github.com/users/pokotyan/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pokotyan/protospace","description":null,"fork":false,"url":"https://api.github.com/repos/pokotyan/protospace","forks_url":"https://api.github.com/repos/pokotyan/protospace/forks","keys_url":"https://api.github.com/repos/pokotyan/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pokotyan/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pokotyan/protospace/teams","hooks_url":"https://api.github.com/repos/pokotyan/protospace/hooks","issue_events_url":"https://api.github.com/repos/pokotyan/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/pokotyan/protospace/events","assignees_url":"https://api.github.com/repos/pokotyan/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/pokotyan/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/pokotyan/protospace/tags","blobs_url":"https://api.github.com/repos/pokotyan/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pokotyan/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pokotyan/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/pokotyan/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pokotyan/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/pokotyan/protospace/languages","stargazers_url":"https://api.github.com/repos/pokotyan/protospace/stargazers","contributors_url":"https://api.github.com/repos/pokotyan/protospace/contributors","subscribers_url":"https://api.github.com/repos/pokotyan/protospace/subscribers","subscription_url":"https://api.github.com/repos/pokotyan/protospace/subscription","commits_url":"https://api.github.com/repos/pokotyan/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/pokotyan/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/pokotyan/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/pokotyan/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/pokotyan/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/pokotyan/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pokotyan/protospace/merges","archive_url":"https://api.github.com/repos/pokotyan/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pokotyan/protospace/downloads","issues_url":"https://api.github.com/repos/pokotyan/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/pokotyan/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/pokotyan/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/pokotyan/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pokotyan/protospace/labels{/name}","releases_url":"https://api.github.com/repos/pokotyan/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/pokotyan/protospace/deployments","created_at":"2016-09-10T06:52:43Z","updated_at":"2016-09-23T10:01:28Z","pushed_at":"2016-10-01T10:35:20Z","git_url":"git://github.com/pokotyan/protospace.git","ssh_url":"git@github.com:pokotyan/protospace.git","clone_url":"https://github.com/pokotyan/protospace.git","svn_url":"https://github.com/pokotyan/protospace","homepage":"","size":644,"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":"pokotyan:master","ref":"master","sha":"8ffeebc03749f7ef5051dc27596ad0746ca047ee","user":{"login":"pokotyan","id":20484619,"avatar_url":"https://avatars.githubusercontent.com/u/20484619?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyan","html_url":"https://github.com/pokotyan","followers_url":"https://api.github.com/users/pokotyan/followers","following_url":"https://api.github.com/users/pokotyan/following{/other_user}","gists_url":"https://api.github.com/users/pokotyan/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyan/subscriptions","organizations_url":"https://api.github.com/users/pokotyan/orgs","repos_url":"https://api.github.com/users/pokotyan/repos","events_url":"https://api.github.com/users/pokotyan/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyan/received_events","type":"User","site_admin":false},"repo":{"id":67856052,"name":"protospace","full_name":"pokotyan/protospace","owner":{"login":"pokotyan","id":20484619,"avatar_url":"https://avatars.githubusercontent.com/u/20484619?v=3","gravatar_id":"","url":"https://api.github.com/users/pokotyan","html_url":"https://github.com/pokotyan","followers_url":"https://api.github.com/users/pokotyan/followers","following_url":"https://api.github.com/users/pokotyan/following{/other_user}","gists_url":"https://api.github.com/users/pokotyan/gists{/gist_id}","starred_url":"https://api.github.com/users/pokotyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokotyan/subscriptions","organizations_url":"https://api.github.com/users/pokotyan/orgs","repos_url":"https://api.github.com/users/pokotyan/repos","events_url":"https://api.github.com/users/pokotyan/events{/privacy}","received_events_url":"https://api.github.com/users/pokotyan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pokotyan/protospace","description":null,"fork":false,"url":"https://api.github.com/repos/pokotyan/protospace","forks_url":"https://api.github.com/repos/pokotyan/protospace/forks","keys_url":"https://api.github.com/repos/pokotyan/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pokotyan/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pokotyan/protospace/teams","hooks_url":"https://api.github.com/repos/pokotyan/protospace/hooks","issue_events_url":"https://api.github.com/repos/pokotyan/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/pokotyan/protospace/events","assignees_url":"https://api.github.com/repos/pokotyan/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/pokotyan/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/pokotyan/protospace/tags","blobs_url":"https://api.github.com/repos/pokotyan/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pokotyan/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pokotyan/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/pokotyan/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pokotyan/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/pokotyan/protospace/languages","stargazers_url":"https://api.github.com/repos/pokotyan/protospace/stargazers","contributors_url":"https://api.github.com/repos/pokotyan/protospace/contributors","subscribers_url":"https://api.github.com/repos/pokotyan/protospace/subscribers","subscription_url":"https://api.github.com/repos/pokotyan/protospace/subscription","commits_url":"https://api.github.com/repos/pokotyan/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/pokotyan/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/pokotyan/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/pokotyan/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/pokotyan/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/pokotyan/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pokotyan/protospace/merges","archive_url":"https://api.github.com/repos/pokotyan/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pokotyan/protospace/downloads","issues_url":"https://api.github.com/repos/pokotyan/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/pokotyan/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/pokotyan/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/pokotyan/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pokotyan/protospace/labels{/name}","releases_url":"https://api.github.com/repos/pokotyan/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/pokotyan/protospace/deployments","created_at":"2016-09-10T06:52:43Z","updated_at":"2016-09-23T10:01:28Z","pushed_at":"2016-10-01T10:35:20Z","git_url":"git://github.com/pokotyan/protospace.git","ssh_url":"git@github.com:pokotyan/protospace.git","clone_url":"https://github.com/pokotyan/protospace.git","svn_url":"https://github.com/pokotyan/protospace","homepage":"","size":644,"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/pokotyan/protospace/pulls/12"},"html":{"href":"https://github.com/pokotyan/protospace/pull/12"},"issue":{"href":"https://api.github.com/repos/pokotyan/protospace/issues/12"},"comments":{"href":"https://api.github.com/repos/pokotyan/protospace/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/pokotyan/protospace/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/pokotyan/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pokotyan/protospace/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/pokotyan/protospace/statuses/309a91fdf6d8415dd645af7ed499df297cf52e7a"}}}}
{"actor":{"display_login":"DaikiInaba"}}