{"action":"created","comment":{"url":"https://api.github.com/repos/YuitoSato/protospace/pulls/comments/41963501","id":41963501,"diff_hunk":"@@ -0,0 +1,38 @@\n+class ProtosController < ApplicationController\n+  def new\n+    @proto = Proto.new\n+  end\n+\n+  def create\n+    @proto = Proto.create(create_params)\n+    redirect_to :root\n+  end\n+\n+  # def edit\n+  #   @proto = Proto.find(params[:id])\n+  # end\n+\n+  # def update\n+  #   @proto = Proto.update(update_params)\n+  #   redirect_to :root\n+  # end\n+\n+  # def destroy\n+  #   proto = Proto.find(params[:id])\n+  #   if proto.user_id == current_user.id\n+  #     proto.destroy\n+  #     redirect_to :root\n+  #   else\n+  #     redirect_to :root\n+  #   end\n+  # end\n+\n+  private\n+  def create_params\n+    params.require(:proto).permit(:title, :catch_copy, :concept)\n+  end\n+\n+  def update_params","path":"app/controllers/protos_controller.rb","position":35,"original_position":35,"commit_id":"83c577d639be206e080210923aec2dd5e871b797","original_commit_id":"83c577d639be206e080210923aec2dd5e871b797","user":{"login":"ryouzi","id":12962224,"avatar_url":"https://avatars.githubusercontent.com/u/12962224?v=3","gravatar_id":"","url":"https://api.github.com/users/ryouzi","html_url":"https://github.com/ryouzi","followers_url":"https://api.github.com/users/ryouzi/followers","following_url":"https://api.github.com/users/ryouzi/following{/other_user}","gists_url":"https://api.github.com/users/ryouzi/gists{/gist_id}","starred_url":"https://api.github.com/users/ryouzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryouzi/subscriptions","organizations_url":"https://api.github.com/users/ryouzi/orgs","repos_url":"https://api.github.com/users/ryouzi/repos","events_url":"https://api.github.com/users/ryouzi/events{/privacy}","received_events_url":"https://api.github.com/users/ryouzi/received_events","type":"User","site_admin":false},"body":"update_paramsも今は必要ないですよね。","created_at":"2015-10-14T07:44:45Z","updated_at":"2015-10-14T07:44:45Z","html_url":"https://github.com/YuitoSato/protospace/pull/11#discussion_r41963501","pull_request_url":"https://api.github.com/repos/YuitoSato/protospace/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/YuitoSato/protospace/pulls/comments/41963501"},"html":{"href":"https://github.com/YuitoSato/protospace/pull/11#discussion_r41963501"},"pull_request":{"href":"https://api.github.com/repos/YuitoSato/protospace/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/YuitoSato/protospace/pulls/11","id":47621715,"html_url":"https://github.com/YuitoSato/protospace/pull/11","diff_url":"https://github.com/YuitoSato/protospace/pull/11.diff","patch_url":"https://github.com/YuitoSato/protospace/pull/11.patch","issue_url":"https://api.github.com/repos/YuitoSato/protospace/issues/11","number":11,"state":"open","locked":false,"title":"プロトタイプの投稿機能実装","user":{"login":"YuitoSato","id":13939071,"avatar_url":"https://avatars.githubusercontent.com/u/13939071?v=3","gravatar_id":"","url":"https://api.github.com/users/YuitoSato","html_url":"https://github.com/YuitoSato","followers_url":"https://api.github.com/users/YuitoSato/followers","following_url":"https://api.github.com/users/YuitoSato/following{/other_user}","gists_url":"https://api.github.com/users/YuitoSato/gists{/gist_id}","starred_url":"https://api.github.com/users/YuitoSato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuitoSato/subscriptions","organizations_url":"https://api.github.com/users/YuitoSato/orgs","repos_url":"https://api.github.com/users/YuitoSato/repos","events_url":"https://api.github.com/users/YuitoSato/events{/privacy}","received_events_url":"https://api.github.com/users/YuitoSato/received_events","type":"User","site_admin":false},"body":"# WHAT\r\nプロトタイプの投稿機能を実装した。投稿フォームとホーム画面の表示も変えた。\r\n# WHY\r\nプロトタイプを投稿できるようにするため。投稿した全プロトタイプを一括して、ホーム画面に表示するため。\r\n※画像アップ機能やユーザー機能は別ブランチを切って実装していたため、このブランチでは実装しきれなかった。","created_at":"2015-10-14T06:20:24Z","updated_at":"2015-10-14T07:44:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5dc39d2f628b44a548e41af62354c04ab1bdb3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/YuitoSato/protospace/pulls/11/commits","review_comments_url":"https://api.github.com/repos/YuitoSato/protospace/pulls/11/comments","review_comment_url":"https://api.github.com/repos/YuitoSato/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YuitoSato/protospace/issues/11/comments","statuses_url":"https://api.github.com/repos/YuitoSato/protospace/statuses/83c577d639be206e080210923aec2dd5e871b797","head":{"label":"YuitoSato:add_function_to_post_prototypes","ref":"add_function_to_post_prototypes","sha":"83c577d639be206e080210923aec2dd5e871b797","user":{"login":"YuitoSato","id":13939071,"avatar_url":"https://avatars.githubusercontent.com/u/13939071?v=3","gravatar_id":"","url":"https://api.github.com/users/YuitoSato","html_url":"https://github.com/YuitoSato","followers_url":"https://api.github.com/users/YuitoSato/followers","following_url":"https://api.github.com/users/YuitoSato/following{/other_user}","gists_url":"https://api.github.com/users/YuitoSato/gists{/gist_id}","starred_url":"https://api.github.com/users/YuitoSato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuitoSato/subscriptions","organizations_url":"https://api.github.com/users/YuitoSato/orgs","repos_url":"https://api.github.com/users/YuitoSato/repos","events_url":"https://api.github.com/users/YuitoSato/events{/privacy}","received_events_url":"https://api.github.com/users/YuitoSato/received_events","type":"User","site_admin":false},"repo":{"id":43876259,"name":"protospace","full_name":"YuitoSato/protospace","owner":{"login":"YuitoSato","id":13939071,"avatar_url":"https://avatars.githubusercontent.com/u/13939071?v=3","gravatar_id":"","url":"https://api.github.com/users/YuitoSato","html_url":"https://github.com/YuitoSato","followers_url":"https://api.github.com/users/YuitoSato/followers","following_url":"https://api.github.com/users/YuitoSato/following{/other_user}","gists_url":"https://api.github.com/users/YuitoSato/gists{/gist_id}","starred_url":"https://api.github.com/users/YuitoSato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuitoSato/subscriptions","organizations_url":"https://api.github.com/users/YuitoSato/orgs","repos_url":"https://api.github.com/users/YuitoSato/repos","events_url":"https://api.github.com/users/YuitoSato/events{/privacy}","received_events_url":"https://api.github.com/users/YuitoSato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YuitoSato/protospace","description":"","fork":false,"url":"https://api.github.com/repos/YuitoSato/protospace","forks_url":"https://api.github.com/repos/YuitoSato/protospace/forks","keys_url":"https://api.github.com/repos/YuitoSato/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuitoSato/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuitoSato/protospace/teams","hooks_url":"https://api.github.com/repos/YuitoSato/protospace/hooks","issue_events_url":"https://api.github.com/repos/YuitoSato/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/YuitoSato/protospace/events","assignees_url":"https://api.github.com/repos/YuitoSato/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/YuitoSato/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/YuitoSato/protospace/tags","blobs_url":"https://api.github.com/repos/YuitoSato/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuitoSato/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuitoSato/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuitoSato/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuitoSato/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/YuitoSato/protospace/languages","stargazers_url":"https://api.github.com/repos/YuitoSato/protospace/stargazers","contributors_url":"https://api.github.com/repos/YuitoSato/protospace/contributors","subscribers_url":"https://api.github.com/repos/YuitoSato/protospace/subscribers","subscription_url":"https://api.github.com/repos/YuitoSato/protospace/subscription","commits_url":"https://api.github.com/repos/YuitoSato/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuitoSato/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuitoSato/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuitoSato/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuitoSato/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/YuitoSato/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuitoSato/protospace/merges","archive_url":"https://api.github.com/repos/YuitoSato/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuitoSato/protospace/downloads","issues_url":"https://api.github.com/repos/YuitoSato/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/YuitoSato/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/YuitoSato/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/YuitoSato/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuitoSato/protospace/labels{/name}","releases_url":"https://api.github.com/repos/YuitoSato/protospace/releases{/id}","created_at":"2015-10-08T09:09:03Z","updated_at":"2015-10-08T09:10:01Z","pushed_at":"2015-10-14T07:38:25Z","git_url":"git://github.com/YuitoSato/protospace.git","ssh_url":"git@github.com:YuitoSato/protospace.git","clone_url":"https://github.com/YuitoSato/protospace.git","svn_url":"https://github.com/YuitoSato/protospace","homepage":"","size":0,"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":"YuitoSato:master","ref":"master","sha":"c5769a28e5c298a0db7bfe580f934726c2a23263","user":{"login":"YuitoSato","id":13939071,"avatar_url":"https://avatars.githubusercontent.com/u/13939071?v=3","gravatar_id":"","url":"https://api.github.com/users/YuitoSato","html_url":"https://github.com/YuitoSato","followers_url":"https://api.github.com/users/YuitoSato/followers","following_url":"https://api.github.com/users/YuitoSato/following{/other_user}","gists_url":"https://api.github.com/users/YuitoSato/gists{/gist_id}","starred_url":"https://api.github.com/users/YuitoSato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuitoSato/subscriptions","organizations_url":"https://api.github.com/users/YuitoSato/orgs","repos_url":"https://api.github.com/users/YuitoSato/repos","events_url":"https://api.github.com/users/YuitoSato/events{/privacy}","received_events_url":"https://api.github.com/users/YuitoSato/received_events","type":"User","site_admin":false},"repo":{"id":43876259,"name":"protospace","full_name":"YuitoSato/protospace","owner":{"login":"YuitoSato","id":13939071,"avatar_url":"https://avatars.githubusercontent.com/u/13939071?v=3","gravatar_id":"","url":"https://api.github.com/users/YuitoSato","html_url":"https://github.com/YuitoSato","followers_url":"https://api.github.com/users/YuitoSato/followers","following_url":"https://api.github.com/users/YuitoSato/following{/other_user}","gists_url":"https://api.github.com/users/YuitoSato/gists{/gist_id}","starred_url":"https://api.github.com/users/YuitoSato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YuitoSato/subscriptions","organizations_url":"https://api.github.com/users/YuitoSato/orgs","repos_url":"https://api.github.com/users/YuitoSato/repos","events_url":"https://api.github.com/users/YuitoSato/events{/privacy}","received_events_url":"https://api.github.com/users/YuitoSato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YuitoSato/protospace","description":"","fork":false,"url":"https://api.github.com/repos/YuitoSato/protospace","forks_url":"https://api.github.com/repos/YuitoSato/protospace/forks","keys_url":"https://api.github.com/repos/YuitoSato/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YuitoSato/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YuitoSato/protospace/teams","hooks_url":"https://api.github.com/repos/YuitoSato/protospace/hooks","issue_events_url":"https://api.github.com/repos/YuitoSato/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/YuitoSato/protospace/events","assignees_url":"https://api.github.com/repos/YuitoSato/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/YuitoSato/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/YuitoSato/protospace/tags","blobs_url":"https://api.github.com/repos/YuitoSato/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YuitoSato/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YuitoSato/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/YuitoSato/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YuitoSato/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/YuitoSato/protospace/languages","stargazers_url":"https://api.github.com/repos/YuitoSato/protospace/stargazers","contributors_url":"https://api.github.com/repos/YuitoSato/protospace/contributors","subscribers_url":"https://api.github.com/repos/YuitoSato/protospace/subscribers","subscription_url":"https://api.github.com/repos/YuitoSato/protospace/subscription","commits_url":"https://api.github.com/repos/YuitoSato/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/YuitoSato/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/YuitoSato/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/YuitoSato/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/YuitoSato/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/YuitoSato/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YuitoSato/protospace/merges","archive_url":"https://api.github.com/repos/YuitoSato/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YuitoSato/protospace/downloads","issues_url":"https://api.github.com/repos/YuitoSato/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/YuitoSato/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/YuitoSato/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/YuitoSato/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YuitoSato/protospace/labels{/name}","releases_url":"https://api.github.com/repos/YuitoSato/protospace/releases{/id}","created_at":"2015-10-08T09:09:03Z","updated_at":"2015-10-08T09:10:01Z","pushed_at":"2015-10-14T07:38:25Z","git_url":"git://github.com/YuitoSato/protospace.git","ssh_url":"git@github.com:YuitoSato/protospace.git","clone_url":"https://github.com/YuitoSato/protospace.git","svn_url":"https://github.com/YuitoSato/protospace","homepage":"","size":0,"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/YuitoSato/protospace/pulls/11"},"html":{"href":"https://github.com/YuitoSato/protospace/pull/11"},"issue":{"href":"https://api.github.com/repos/YuitoSato/protospace/issues/11"},"comments":{"href":"https://api.github.com/repos/YuitoSato/protospace/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/YuitoSato/protospace/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/YuitoSato/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YuitoSato/protospace/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/YuitoSato/protospace/statuses/83c577d639be206e080210923aec2dd5e871b797"}}}}