{"action":"created","comment":{"url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/comments/243506559","pull_request_review_id":187294965,"id":243506559,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzUwNjU1OQ==","diff_hunk":"@@ -1,9 +1,15 @@\n class ItemsController < ApplicationController\n+\n   def index\n     @item = Item.all\n     @items = Item.new\n   end\n   def new\n+    # ヘッダーがform_for @itemsのため仮置き\n+    # 別担当者がヘッダー訂正次第削除予定です\n+    @items = Item.new","path":"app/controllers/items_controller.rb","position":10,"original_position":10,"commit_id":"6f2559d8c454724b697c79b80bbecf4b5be88a5c","original_commit_id":"6f2559d8c454724b697c79b80bbecf4b5be88a5c","user":{"login":"abeshi1019","id":44920098,"node_id":"MDQ6VXNlcjQ0OTIwMDk4","avatar_url":"https://avatars0.githubusercontent.com/u/44920098?v=4","gravatar_id":"","url":"https://api.github.com/users/abeshi1019","html_url":"https://github.com/abeshi1019","followers_url":"https://api.github.com/users/abeshi1019/followers","following_url":"https://api.github.com/users/abeshi1019/following{/other_user}","gists_url":"https://api.github.com/users/abeshi1019/gists{/gist_id}","starred_url":"https://api.github.com/users/abeshi1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeshi1019/subscriptions","organizations_url":"https://api.github.com/users/abeshi1019/orgs","repos_url":"https://api.github.com/users/abeshi1019/repos","events_url":"https://api.github.com/users/abeshi1019/events{/privacy}","received_events_url":"https://api.github.com/users/abeshi1019/received_events","type":"User","site_admin":false},"body":"そうです。現状仮置きで、最終的には削除します。\r\n理由は、ヘッダーの検索部分を担当者がform_for @itemsで作成しているため、@itemsを渡さなければ表示できない状態です。\r\n","created_at":"2018-12-21T07:32:46Z","updated_at":"2018-12-21T07:32:46Z","html_url":"https://github.com/abeshi1019/freemarket_sample_40a/pull/38#discussion_r243506559","pull_request_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/comments/243506559"},"html":{"href":"https://github.com/abeshi1019/freemarket_sample_40a/pull/38#discussion_r243506559"},"pull_request":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38"}},"in_reply_to_id":243505725},"pull_request":{"url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38","id":240389815,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMzg5ODE1","html_url":"https://github.com/abeshi1019/freemarket_sample_40a/pull/38","diff_url":"https://github.com/abeshi1019/freemarket_sample_40a/pull/38.diff","patch_url":"https://github.com/abeshi1019/freemarket_sample_40a/pull/38.patch","issue_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/38","number":38,"state":"open","locked":false,"title":"Add exhibit system","user":{"login":"abeshi1019","id":44920098,"node_id":"MDQ6VXNlcjQ0OTIwMDk4","avatar_url":"https://avatars0.githubusercontent.com/u/44920098?v=4","gravatar_id":"","url":"https://api.github.com/users/abeshi1019","html_url":"https://github.com/abeshi1019","followers_url":"https://api.github.com/users/abeshi1019/followers","following_url":"https://api.github.com/users/abeshi1019/following{/other_user}","gists_url":"https://api.github.com/users/abeshi1019/gists{/gist_id}","starred_url":"https://api.github.com/users/abeshi1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeshi1019/subscriptions","organizations_url":"https://api.github.com/users/abeshi1019/orgs","repos_url":"https://api.github.com/users/abeshi1019/repos","events_url":"https://api.github.com/users/abeshi1019/events{/privacy}","received_events_url":"https://api.github.com/users/abeshi1019/received_events","type":"User","site_admin":false},"body":"# what\r\n出品画面から出品(itemテーブル、imageテーブルに保存)できるようにした。\r\n\r\n未完部分があるが、他の機能との連携チェックの為、一旦マージを行う。\r\n未完部分については別ブランチにて作業する。\r\n\r\n### 未完部分(別ブランチにて作業する内容は下記)\r\n- 出品画面の出品画像部分\r\n- 出品後の画面処理\r\n- バリテーション\r\n- バリテーションエラーメッセージ\r\n- テストコード\r\n\r\n## fields_forによる別テーブルへの保存\r\n出品の際の画像はitemテーブルとは別のimageテーブルに保存する。\r\nまた、画像は４枚まで保存できるようになっている。\r\nそのための記述は以下である。\r\n\r\n### app/models/item.rb\r\naccepts_nested_attributes_for :images でimageインスタンスを複数作成することを許可。\r\n\r\n### app/controllers/items_controller.rb\r\n画像用のインスタンス(@items.images)を４つ生成。\r\nストロングパラメーターにimages_attributes:[:id,:image]を追記している。\r\n\r\n### app/views/items/new.html.haml\r\n form_withの中にimageテーブルへ画像を送信するためにfields_forを設置。\r\nまた、現状では作り込めていない不要な部分(階層カテゴリ)はコメントアウトしている。\r\n\r\n\r\n以上","created_at":"2018-12-21T07:09:11Z","updated_at":"2018-12-21T07:32:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc1dba1829cdeb47c83b3227d4ea555549a45835","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38/commits","review_comments_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38/comments","review_comment_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/comments{/number}","comments_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/38/comments","statuses_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/statuses/6f2559d8c454724b697c79b80bbecf4b5be88a5c","head":{"label":"abeshi1019:add_exhibit_system","ref":"add_exhibit_system","sha":"6f2559d8c454724b697c79b80bbecf4b5be88a5c","user":{"login":"abeshi1019","id":44920098,"node_id":"MDQ6VXNlcjQ0OTIwMDk4","avatar_url":"https://avatars0.githubusercontent.com/u/44920098?v=4","gravatar_id":"","url":"https://api.github.com/users/abeshi1019","html_url":"https://github.com/abeshi1019","followers_url":"https://api.github.com/users/abeshi1019/followers","following_url":"https://api.github.com/users/abeshi1019/following{/other_user}","gists_url":"https://api.github.com/users/abeshi1019/gists{/gist_id}","starred_url":"https://api.github.com/users/abeshi1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeshi1019/subscriptions","organizations_url":"https://api.github.com/users/abeshi1019/orgs","repos_url":"https://api.github.com/users/abeshi1019/repos","events_url":"https://api.github.com/users/abeshi1019/events{/privacy}","received_events_url":"https://api.github.com/users/abeshi1019/received_events","type":"User","site_admin":false},"repo":{"id":161270873,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEyNzA4NzM=","name":"freemarket_sample_40a","full_name":"abeshi1019/freemarket_sample_40a","private":false,"owner":{"login":"abeshi1019","id":44920098,"node_id":"MDQ6VXNlcjQ0OTIwMDk4","avatar_url":"https://avatars0.githubusercontent.com/u/44920098?v=4","gravatar_id":"","url":"https://api.github.com/users/abeshi1019","html_url":"https://github.com/abeshi1019","followers_url":"https://api.github.com/users/abeshi1019/followers","following_url":"https://api.github.com/users/abeshi1019/following{/other_user}","gists_url":"https://api.github.com/users/abeshi1019/gists{/gist_id}","starred_url":"https://api.github.com/users/abeshi1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeshi1019/subscriptions","organizations_url":"https://api.github.com/users/abeshi1019/orgs","repos_url":"https://api.github.com/users/abeshi1019/repos","events_url":"https://api.github.com/users/abeshi1019/events{/privacy}","received_events_url":"https://api.github.com/users/abeshi1019/received_events","type":"User","site_admin":false},"html_url":"https://github.com/abeshi1019/freemarket_sample_40a","description":null,"fork":false,"url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a","forks_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/forks","keys_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/teams","hooks_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/hooks","issue_events_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/events{/number}","events_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/events","assignees_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/assignees{/user}","branches_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/branches{/branch}","tags_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/tags","blobs_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/refs{/sha}","trees_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/statuses/{sha}","languages_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/languages","stargazers_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/stargazers","contributors_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/contributors","subscribers_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/subscribers","subscription_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/subscription","commits_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/commits{/sha}","git_commits_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/commits{/sha}","comments_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/comments{/number}","issue_comment_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/comments{/number}","contents_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/contents/{+path}","compare_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/merges","archive_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/downloads","issues_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues{/number}","pulls_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls{/number}","milestones_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/milestones{/number}","notifications_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/labels{/name}","releases_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/releases{/id}","deployments_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/deployments","created_at":"2018-12-11T03:20:28Z","updated_at":"2018-12-21T06:20:53Z","pushed_at":"2018-12-21T07:22:14Z","git_url":"git://github.com/abeshi1019/freemarket_sample_40a.git","ssh_url":"git@github.com:abeshi1019/freemarket_sample_40a.git","clone_url":"https://github.com/abeshi1019/freemarket_sample_40a.git","svn_url":"https://github.com/abeshi1019/freemarket_sample_40a","homepage":null,"size":367,"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":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"abeshi1019:master","ref":"master","sha":"05616efa4e53f997cd579082b6e111267e0665de","user":{"login":"abeshi1019","id":44920098,"node_id":"MDQ6VXNlcjQ0OTIwMDk4","avatar_url":"https://avatars0.githubusercontent.com/u/44920098?v=4","gravatar_id":"","url":"https://api.github.com/users/abeshi1019","html_url":"https://github.com/abeshi1019","followers_url":"https://api.github.com/users/abeshi1019/followers","following_url":"https://api.github.com/users/abeshi1019/following{/other_user}","gists_url":"https://api.github.com/users/abeshi1019/gists{/gist_id}","starred_url":"https://api.github.com/users/abeshi1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeshi1019/subscriptions","organizations_url":"https://api.github.com/users/abeshi1019/orgs","repos_url":"https://api.github.com/users/abeshi1019/repos","events_url":"https://api.github.com/users/abeshi1019/events{/privacy}","received_events_url":"https://api.github.com/users/abeshi1019/received_events","type":"User","site_admin":false},"repo":{"id":161270873,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEyNzA4NzM=","name":"freemarket_sample_40a","full_name":"abeshi1019/freemarket_sample_40a","private":false,"owner":{"login":"abeshi1019","id":44920098,"node_id":"MDQ6VXNlcjQ0OTIwMDk4","avatar_url":"https://avatars0.githubusercontent.com/u/44920098?v=4","gravatar_id":"","url":"https://api.github.com/users/abeshi1019","html_url":"https://github.com/abeshi1019","followers_url":"https://api.github.com/users/abeshi1019/followers","following_url":"https://api.github.com/users/abeshi1019/following{/other_user}","gists_url":"https://api.github.com/users/abeshi1019/gists{/gist_id}","starred_url":"https://api.github.com/users/abeshi1019/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abeshi1019/subscriptions","organizations_url":"https://api.github.com/users/abeshi1019/orgs","repos_url":"https://api.github.com/users/abeshi1019/repos","events_url":"https://api.github.com/users/abeshi1019/events{/privacy}","received_events_url":"https://api.github.com/users/abeshi1019/received_events","type":"User","site_admin":false},"html_url":"https://github.com/abeshi1019/freemarket_sample_40a","description":null,"fork":false,"url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a","forks_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/forks","keys_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/teams","hooks_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/hooks","issue_events_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/events{/number}","events_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/events","assignees_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/assignees{/user}","branches_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/branches{/branch}","tags_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/tags","blobs_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/refs{/sha}","trees_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/statuses/{sha}","languages_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/languages","stargazers_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/stargazers","contributors_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/contributors","subscribers_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/subscribers","subscription_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/subscription","commits_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/commits{/sha}","git_commits_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/git/commits{/sha}","comments_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/comments{/number}","issue_comment_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/comments{/number}","contents_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/contents/{+path}","compare_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/merges","archive_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/downloads","issues_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues{/number}","pulls_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls{/number}","milestones_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/milestones{/number}","notifications_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/labels{/name}","releases_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/releases{/id}","deployments_url":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/deployments","created_at":"2018-12-11T03:20:28Z","updated_at":"2018-12-21T06:20:53Z","pushed_at":"2018-12-21T07:22:14Z","git_url":"git://github.com/abeshi1019/freemarket_sample_40a.git","ssh_url":"git@github.com:abeshi1019/freemarket_sample_40a.git","clone_url":"https://github.com/abeshi1019/freemarket_sample_40a.git","svn_url":"https://github.com/abeshi1019/freemarket_sample_40a","homepage":null,"size":367,"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":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38"},"html":{"href":"https://github.com/abeshi1019/freemarket_sample_40a/pull/38"},"issue":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/38"},"comments":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/abeshi1019/freemarket_sample_40a/statuses/6f2559d8c454724b697c79b80bbecf4b5be88a5c"}},"author_association":"OWNER"}}
{"actor":{"display_login":"abeshi1019"}}