{"action":"created","comment":{"url":"https://api.github.com/repos/zofier/PioneerSpace/pulls/comments/53134049","id":53134049,"diff_hunk":"@@ -0,0 +1,11 @@\n+class Pioneertype < ActiveRecord::Base\n+\n+  has_many :pioneertype_images\n+  belongs_to :user\n+  accepts_nested_attributes_for :pioneertype_images, reject_if: :reject_pioneertype_images","path":"app/models/pioneertype.rb","position":5,"original_position":5,"commit_id":"51cdd08c2f06b71f8f5e6e61431e1029099e8e32","original_commit_id":"51cdd08c2f06b71f8f5e6e61431e1029099e8e32","user":{"login":"yuta-t","id":10217967,"avatar_url":"https://avatars.githubusercontent.com/u/10217967?v=3","gravatar_id":"","url":"https://api.github.com/users/yuta-t","html_url":"https://github.com/yuta-t","followers_url":"https://api.github.com/users/yuta-t/followers","following_url":"https://api.github.com/users/yuta-t/following{/other_user}","gists_url":"https://api.github.com/users/yuta-t/gists{/gist_id}","starred_url":"https://api.github.com/users/yuta-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuta-t/subscriptions","organizations_url":"https://api.github.com/users/yuta-t/orgs","repos_url":"https://api.github.com/users/yuta-t/repos","events_url":"https://api.github.com/users/yuta-t/events{/privacy}","received_events_url":"https://api.github.com/users/yuta-t/received_events","type":"User","site_admin":false},"body":"プログラミングにおいて、ネーミング（名前付け）はとても重要な話題の一つなので、ここも個別で調べて見ると良いですね！","created_at":"2016-02-17T08:42:18Z","updated_at":"2016-02-17T08:42:18Z","html_url":"https://github.com/zofier/PioneerSpace/pull/5#discussion_r53134049","pull_request_url":"https://api.github.com/repos/zofier/PioneerSpace/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/zofier/PioneerSpace/pulls/comments/53134049"},"html":{"href":"https://github.com/zofier/PioneerSpace/pull/5#discussion_r53134049"},"pull_request":{"href":"https://api.github.com/repos/zofier/PioneerSpace/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/zofier/PioneerSpace/pulls/5","id":59340816,"html_url":"https://github.com/zofier/PioneerSpace/pull/5","diff_url":"https://github.com/zofier/PioneerSpace/pull/5.diff","patch_url":"https://github.com/zofier/PioneerSpace/pull/5.patch","issue_url":"https://api.github.com/repos/zofier/PioneerSpace/issues/5","number":5,"state":"open","locked":false,"title":"プロトタイプ投稿・一覧機能作成","user":{"login":"zofier","id":16558513,"avatar_url":"https://avatars.githubusercontent.com/u/16558513?v=3","gravatar_id":"","url":"https://api.github.com/users/zofier","html_url":"https://github.com/zofier","followers_url":"https://api.github.com/users/zofier/followers","following_url":"https://api.github.com/users/zofier/following{/other_user}","gists_url":"https://api.github.com/users/zofier/gists{/gist_id}","starred_url":"https://api.github.com/users/zofier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zofier/subscriptions","organizations_url":"https://api.github.com/users/zofier/orgs","repos_url":"https://api.github.com/users/zofier/repos","events_url":"https://api.github.com/users/zofier/events{/privacy}","received_events_url":"https://api.github.com/users/zofier/received_events","type":"User","site_admin":false},"body":"## WHAT\r\n1. gem(kaminari)導入\r\n2. 投稿画面のjsファイル追加 \r\n3. index画面の記事を横並びに \r\n4. 投稿用のコントローラー追加 \r\n5. usersコントローラー(show)を追加 \r\n6. pioneertype.rbにバリデーションを追加 \r\n7. pioneertype_imageモデルを追加 \r\n8. アソシエーションを追加 \r\n9. pioneertype_image_uploaderを追加 \r\n10.kaminariのcssを変えるためにテーマを追加 \r\n11. ヘッダーのnewprotoを投稿画面へリンク \r\n12. pioneertypesに投稿、投稿一覧画面追加 \r\n13. 不要なファイル削除 \r\n14. routesにリソース追加\r\n\r\n15. 作成ページなし\r\n16. turbolinks削除\r\n17. bootstrap.min.js追加\r\n18. pionnertype.jsをpioneertype.jsに\r\n19. index画面のデザインを変更\r\n20. 不要な文を削除\r\n21. userとimageの関係をbelongsからhasmanyへ\r\n22. eachを部分テンプレートに\r\n23. show画面を+画面以外実装\r\n24. rootを設定\r\n25. pioneer typesからnameカラムを削除\r\n26. validate機能を正常に動作\r\n27.js, css, viewに+ボタン動作のためのコードを追加\r\n\r\n## WHY\r\n1. 投稿一覧画面にページング機能を追加するため\r\n2. 投稿画面において画像を選択したらどの画像を選択したかプレビューを見てもらうため\r\n3. 指定された作り方にするため\r\n4. 投稿するため\r\n5. ステータスバーにidを表示させるため\r\n6. 指定されたため\r\n7. imageとpioneertypeとuserを紐付けるため\r\n8. 同上\r\n9. avatarとは別にuploaderが必要となるため\r\n10. 指定されたため\r\n11. 同上\r\n12. 同上\r\n13. restfulのような綺麗さを保つため\r\n14. モデルを新しく追加したため\r\n\r\n15. 不要\r\n16. リロードなしで画像を出力するため\r\n17. dropdownを動かすため\r\n18. 名前表記を正しくするため\r\n19. 端に文字が寄っていたため\r\n20. 不要なので\r\n21. userはたくさんのimageを持ってるから\r\n22. eachより部分テンプレートで渡したほうが綺麗なので\r\n23. ひとまず作り終えました\r\n24. index画面を求められている題目だったため\r\n25. 今の時点で使わないので\r\n26. 指定されたものを必須項目にするため\r\n27. 題目によって求められているため","created_at":"2016-02-15T09:51:13Z","updated_at":"2016-02-17T08:42:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecaaa35f52fa249358960b9e99a1562cac468c24","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zofier/PioneerSpace/pulls/5/commits","review_comments_url":"https://api.github.com/repos/zofier/PioneerSpace/pulls/5/comments","review_comment_url":"https://api.github.com/repos/zofier/PioneerSpace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zofier/PioneerSpace/issues/5/comments","statuses_url":"https://api.github.com/repos/zofier/PioneerSpace/statuses/51cdd08c2f06b71f8f5e6e61431e1029099e8e32","head":{"label":"zofier:プロトタイプ投稿・一覧機能作成","ref":"プロトタイプ投稿・一覧機能作成","sha":"51cdd08c2f06b71f8f5e6e61431e1029099e8e32","user":{"login":"zofier","id":16558513,"avatar_url":"https://avatars.githubusercontent.com/u/16558513?v=3","gravatar_id":"","url":"https://api.github.com/users/zofier","html_url":"https://github.com/zofier","followers_url":"https://api.github.com/users/zofier/followers","following_url":"https://api.github.com/users/zofier/following{/other_user}","gists_url":"https://api.github.com/users/zofier/gists{/gist_id}","starred_url":"https://api.github.com/users/zofier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zofier/subscriptions","organizations_url":"https://api.github.com/users/zofier/orgs","repos_url":"https://api.github.com/users/zofier/repos","events_url":"https://api.github.com/users/zofier/events{/privacy}","received_events_url":"https://api.github.com/users/zofier/received_events","type":"User","site_admin":false},"repo":{"id":51279251,"name":"PioneerSpace","full_name":"zofier/PioneerSpace","owner":{"login":"zofier","id":16558513,"avatar_url":"https://avatars.githubusercontent.com/u/16558513?v=3","gravatar_id":"","url":"https://api.github.com/users/zofier","html_url":"https://github.com/zofier","followers_url":"https://api.github.com/users/zofier/followers","following_url":"https://api.github.com/users/zofier/following{/other_user}","gists_url":"https://api.github.com/users/zofier/gists{/gist_id}","starred_url":"https://api.github.com/users/zofier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zofier/subscriptions","organizations_url":"https://api.github.com/users/zofier/orgs","repos_url":"https://api.github.com/users/zofier/repos","events_url":"https://api.github.com/users/zofier/events{/privacy}","received_events_url":"https://api.github.com/users/zofier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zofier/PioneerSpace","description":"","fork":false,"url":"https://api.github.com/repos/zofier/PioneerSpace","forks_url":"https://api.github.com/repos/zofier/PioneerSpace/forks","keys_url":"https://api.github.com/repos/zofier/PioneerSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zofier/PioneerSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zofier/PioneerSpace/teams","hooks_url":"https://api.github.com/repos/zofier/PioneerSpace/hooks","issue_events_url":"https://api.github.com/repos/zofier/PioneerSpace/issues/events{/number}","events_url":"https://api.github.com/repos/zofier/PioneerSpace/events","assignees_url":"https://api.github.com/repos/zofier/PioneerSpace/assignees{/user}","branches_url":"https://api.github.com/repos/zofier/PioneerSpace/branches{/branch}","tags_url":"https://api.github.com/repos/zofier/PioneerSpace/tags","blobs_url":"https://api.github.com/repos/zofier/PioneerSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zofier/PioneerSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zofier/PioneerSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/zofier/PioneerSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zofier/PioneerSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/zofier/PioneerSpace/languages","stargazers_url":"https://api.github.com/repos/zofier/PioneerSpace/stargazers","contributors_url":"https://api.github.com/repos/zofier/PioneerSpace/contributors","subscribers_url":"https://api.github.com/repos/zofier/PioneerSpace/subscribers","subscription_url":"https://api.github.com/repos/zofier/PioneerSpace/subscription","commits_url":"https://api.github.com/repos/zofier/PioneerSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/zofier/PioneerSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/zofier/PioneerSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/zofier/PioneerSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/zofier/PioneerSpace/contents/{+path}","compare_url":"https://api.github.com/repos/zofier/PioneerSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zofier/PioneerSpace/merges","archive_url":"https://api.github.com/repos/zofier/PioneerSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zofier/PioneerSpace/downloads","issues_url":"https://api.github.com/repos/zofier/PioneerSpace/issues{/number}","pulls_url":"https://api.github.com/repos/zofier/PioneerSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/zofier/PioneerSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/zofier/PioneerSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zofier/PioneerSpace/labels{/name}","releases_url":"https://api.github.com/repos/zofier/PioneerSpace/releases{/id}","deployments_url":"https://api.github.com/repos/zofier/PioneerSpace/deployments","created_at":"2016-02-08T04:31:32Z","updated_at":"2016-02-08T04:40:25Z","pushed_at":"2016-02-17T08:31:12Z","git_url":"git://github.com/zofier/PioneerSpace.git","ssh_url":"git@github.com:zofier/PioneerSpace.git","clone_url":"https://github.com/zofier/PioneerSpace.git","svn_url":"https://github.com/zofier/PioneerSpace","homepage":"","size":686,"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":"zofier:master","ref":"master","sha":"921a15fd4cbc55151560dfa9cb098b6d568e3838","user":{"login":"zofier","id":16558513,"avatar_url":"https://avatars.githubusercontent.com/u/16558513?v=3","gravatar_id":"","url":"https://api.github.com/users/zofier","html_url":"https://github.com/zofier","followers_url":"https://api.github.com/users/zofier/followers","following_url":"https://api.github.com/users/zofier/following{/other_user}","gists_url":"https://api.github.com/users/zofier/gists{/gist_id}","starred_url":"https://api.github.com/users/zofier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zofier/subscriptions","organizations_url":"https://api.github.com/users/zofier/orgs","repos_url":"https://api.github.com/users/zofier/repos","events_url":"https://api.github.com/users/zofier/events{/privacy}","received_events_url":"https://api.github.com/users/zofier/received_events","type":"User","site_admin":false},"repo":{"id":51279251,"name":"PioneerSpace","full_name":"zofier/PioneerSpace","owner":{"login":"zofier","id":16558513,"avatar_url":"https://avatars.githubusercontent.com/u/16558513?v=3","gravatar_id":"","url":"https://api.github.com/users/zofier","html_url":"https://github.com/zofier","followers_url":"https://api.github.com/users/zofier/followers","following_url":"https://api.github.com/users/zofier/following{/other_user}","gists_url":"https://api.github.com/users/zofier/gists{/gist_id}","starred_url":"https://api.github.com/users/zofier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zofier/subscriptions","organizations_url":"https://api.github.com/users/zofier/orgs","repos_url":"https://api.github.com/users/zofier/repos","events_url":"https://api.github.com/users/zofier/events{/privacy}","received_events_url":"https://api.github.com/users/zofier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zofier/PioneerSpace","description":"","fork":false,"url":"https://api.github.com/repos/zofier/PioneerSpace","forks_url":"https://api.github.com/repos/zofier/PioneerSpace/forks","keys_url":"https://api.github.com/repos/zofier/PioneerSpace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zofier/PioneerSpace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zofier/PioneerSpace/teams","hooks_url":"https://api.github.com/repos/zofier/PioneerSpace/hooks","issue_events_url":"https://api.github.com/repos/zofier/PioneerSpace/issues/events{/number}","events_url":"https://api.github.com/repos/zofier/PioneerSpace/events","assignees_url":"https://api.github.com/repos/zofier/PioneerSpace/assignees{/user}","branches_url":"https://api.github.com/repos/zofier/PioneerSpace/branches{/branch}","tags_url":"https://api.github.com/repos/zofier/PioneerSpace/tags","blobs_url":"https://api.github.com/repos/zofier/PioneerSpace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zofier/PioneerSpace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zofier/PioneerSpace/git/refs{/sha}","trees_url":"https://api.github.com/repos/zofier/PioneerSpace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zofier/PioneerSpace/statuses/{sha}","languages_url":"https://api.github.com/repos/zofier/PioneerSpace/languages","stargazers_url":"https://api.github.com/repos/zofier/PioneerSpace/stargazers","contributors_url":"https://api.github.com/repos/zofier/PioneerSpace/contributors","subscribers_url":"https://api.github.com/repos/zofier/PioneerSpace/subscribers","subscription_url":"https://api.github.com/repos/zofier/PioneerSpace/subscription","commits_url":"https://api.github.com/repos/zofier/PioneerSpace/commits{/sha}","git_commits_url":"https://api.github.com/repos/zofier/PioneerSpace/git/commits{/sha}","comments_url":"https://api.github.com/repos/zofier/PioneerSpace/comments{/number}","issue_comment_url":"https://api.github.com/repos/zofier/PioneerSpace/issues/comments{/number}","contents_url":"https://api.github.com/repos/zofier/PioneerSpace/contents/{+path}","compare_url":"https://api.github.com/repos/zofier/PioneerSpace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zofier/PioneerSpace/merges","archive_url":"https://api.github.com/repos/zofier/PioneerSpace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zofier/PioneerSpace/downloads","issues_url":"https://api.github.com/repos/zofier/PioneerSpace/issues{/number}","pulls_url":"https://api.github.com/repos/zofier/PioneerSpace/pulls{/number}","milestones_url":"https://api.github.com/repos/zofier/PioneerSpace/milestones{/number}","notifications_url":"https://api.github.com/repos/zofier/PioneerSpace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zofier/PioneerSpace/labels{/name}","releases_url":"https://api.github.com/repos/zofier/PioneerSpace/releases{/id}","deployments_url":"https://api.github.com/repos/zofier/PioneerSpace/deployments","created_at":"2016-02-08T04:31:32Z","updated_at":"2016-02-08T04:40:25Z","pushed_at":"2016-02-17T08:31:12Z","git_url":"git://github.com/zofier/PioneerSpace.git","ssh_url":"git@github.com:zofier/PioneerSpace.git","clone_url":"https://github.com/zofier/PioneerSpace.git","svn_url":"https://github.com/zofier/PioneerSpace","homepage":"","size":686,"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/zofier/PioneerSpace/pulls/5"},"html":{"href":"https://github.com/zofier/PioneerSpace/pull/5"},"issue":{"href":"https://api.github.com/repos/zofier/PioneerSpace/issues/5"},"comments":{"href":"https://api.github.com/repos/zofier/PioneerSpace/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/zofier/PioneerSpace/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/zofier/PioneerSpace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zofier/PioneerSpace/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/zofier/PioneerSpace/statuses/51cdd08c2f06b71f8f5e6e61431e1029099e8e32"}}}}