{"action":"created","comment":{"url":"https://api.github.com/repos/tmysok/Protospace/pulls/comments/67991624","id":67991624,"diff_hunk":"@@ -19,15 +19,28 @@ def edit\n   end\n \n   def create\n-    current_user.prototypes.create(prototype_params)\n-    flash[:notice] = '投稿が完了しました'\n-    redirect_to action: :index\n+    if current_user.prototypes.create(prototype_params)","path":"app/controllers/prototypes_controller.rb","position":15,"original_position":15,"commit_id":"2c3bf2683acc00f17b256825ad335343f74fbd7b","original_commit_id":"2c3bf2683acc00f17b256825ad335343f74fbd7b","user":{"login":"tmysok","id":17180666,"avatar_url":"https://avatars.githubusercontent.com/u/17180666?v=3","gravatar_id":"","url":"https://api.github.com/users/tmysok","html_url":"https://github.com/tmysok","followers_url":"https://api.github.com/users/tmysok/followers","following_url":"https://api.github.com/users/tmysok/following{/other_user}","gists_url":"https://api.github.com/users/tmysok/gists{/gist_id}","starred_url":"https://api.github.com/users/tmysok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmysok/subscriptions","organizations_url":"https://api.github.com/users/tmysok/orgs","repos_url":"https://api.github.com/users/tmysok/repos","events_url":"https://api.github.com/users/tmysok/events{/privacy}","received_events_url":"https://api.github.com/users/tmysok/received_events","type":"User","site_admin":false},"body":"できてます","created_at":"2016-06-22T04:02:38Z","updated_at":"2016-06-22T04:02:38Z","html_url":"https://github.com/tmysok/Protospace/pull/25#discussion_r67991624","pull_request_url":"https://api.github.com/repos/tmysok/Protospace/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/tmysok/Protospace/pulls/comments/67991624"},"html":{"href":"https://github.com/tmysok/Protospace/pull/25#discussion_r67991624"},"pull_request":{"href":"https://api.github.com/repos/tmysok/Protospace/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/tmysok/Protospace/pulls/25","id":73866818,"html_url":"https://github.com/tmysok/Protospace/pull/25","diff_url":"https://github.com/tmysok/Protospace/pull/25.diff","patch_url":"https://github.com/tmysok/Protospace/pull/25.patch","issue_url":"https://api.github.com/repos/tmysok/Protospace/issues/25","number":25,"state":"open","locked":false,"title":"Implement prototype-deleting function","user":{"login":"tmysok","id":17180666,"avatar_url":"https://avatars.githubusercontent.com/u/17180666?v=3","gravatar_id":"","url":"https://api.github.com/users/tmysok","html_url":"https://github.com/tmysok","followers_url":"https://api.github.com/users/tmysok/followers","following_url":"https://api.github.com/users/tmysok/following{/other_user}","gists_url":"https://api.github.com/users/tmysok/gists{/gist_id}","starred_url":"https://api.github.com/users/tmysok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmysok/subscriptions","organizations_url":"https://api.github.com/users/tmysok/orgs","repos_url":"https://api.github.com/users/tmysok/repos","events_url":"https://api.github.com/users/tmysok/events{/privacy}","received_events_url":"https://api.github.com/users/tmysok/received_events","type":"User","site_admin":false},"body":"# WHAT\r\n- Define `prototypes#destroy`.\r\n- Add a button to destroy a prototype on the view of `prototypes#show`.\r\n\r\n# WHY\r\n- To make it possible for users to destroy prototypes they created.\r\n\r\n### RELATED ISSUE\r\nhttps://github.com/tmysok/Protospace/issues/13","created_at":"2016-06-15T07:55:59Z","updated_at":"2016-06-22T04:02:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2007b68f664586c8013f20714b8caba19bbe329f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tmysok/Protospace/pulls/25/commits","review_comments_url":"https://api.github.com/repos/tmysok/Protospace/pulls/25/comments","review_comment_url":"https://api.github.com/repos/tmysok/Protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tmysok/Protospace/issues/25/comments","statuses_url":"https://api.github.com/repos/tmysok/Protospace/statuses/2c3bf2683acc00f17b256825ad335343f74fbd7b","head":{"label":"tmysok:implement_prototype_deleting_function","ref":"implement_prototype_deleting_function","sha":"2c3bf2683acc00f17b256825ad335343f74fbd7b","user":{"login":"tmysok","id":17180666,"avatar_url":"https://avatars.githubusercontent.com/u/17180666?v=3","gravatar_id":"","url":"https://api.github.com/users/tmysok","html_url":"https://github.com/tmysok","followers_url":"https://api.github.com/users/tmysok/followers","following_url":"https://api.github.com/users/tmysok/following{/other_user}","gists_url":"https://api.github.com/users/tmysok/gists{/gist_id}","starred_url":"https://api.github.com/users/tmysok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmysok/subscriptions","organizations_url":"https://api.github.com/users/tmysok/orgs","repos_url":"https://api.github.com/users/tmysok/repos","events_url":"https://api.github.com/users/tmysok/events{/privacy}","received_events_url":"https://api.github.com/users/tmysok/received_events","type":"User","site_admin":false},"repo":{"id":58167274,"name":"Protospace","full_name":"tmysok/Protospace","owner":{"login":"tmysok","id":17180666,"avatar_url":"https://avatars.githubusercontent.com/u/17180666?v=3","gravatar_id":"","url":"https://api.github.com/users/tmysok","html_url":"https://github.com/tmysok","followers_url":"https://api.github.com/users/tmysok/followers","following_url":"https://api.github.com/users/tmysok/following{/other_user}","gists_url":"https://api.github.com/users/tmysok/gists{/gist_id}","starred_url":"https://api.github.com/users/tmysok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmysok/subscriptions","organizations_url":"https://api.github.com/users/tmysok/orgs","repos_url":"https://api.github.com/users/tmysok/repos","events_url":"https://api.github.com/users/tmysok/events{/privacy}","received_events_url":"https://api.github.com/users/tmysok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmysok/Protospace","description":"","fork":false,"url":"https://api.github.com/repos/tmysok/Protospace","forks_url":"https://api.github.com/repos/tmysok/Protospace/forks","keys_url":"https://api.github.com/repos/tmysok/Protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmysok/Protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmysok/Protospace/teams","hooks_url":"https://api.github.com/repos/tmysok/Protospace/hooks","issue_events_url":"https://api.github.com/repos/tmysok/Protospace/issues/events{/number}","events_url":"https://api.github.com/repos/tmysok/Protospace/events","assignees_url":"https://api.github.com/repos/tmysok/Protospace/assignees{/user}","branches_url":"https://api.github.com/repos/tmysok/Protospace/branches{/branch}","tags_url":"https://api.github.com/repos/tmysok/Protospace/tags","blobs_url":"https://api.github.com/repos/tmysok/Protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmysok/Protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmysok/Protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmysok/Protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmysok/Protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/tmysok/Protospace/languages","stargazers_url":"https://api.github.com/repos/tmysok/Protospace/stargazers","contributors_url":"https://api.github.com/repos/tmysok/Protospace/contributors","subscribers_url":"https://api.github.com/repos/tmysok/Protospace/subscribers","subscription_url":"https://api.github.com/repos/tmysok/Protospace/subscription","commits_url":"https://api.github.com/repos/tmysok/Protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmysok/Protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmysok/Protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmysok/Protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmysok/Protospace/contents/{+path}","compare_url":"https://api.github.com/repos/tmysok/Protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmysok/Protospace/merges","archive_url":"https://api.github.com/repos/tmysok/Protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmysok/Protospace/downloads","issues_url":"https://api.github.com/repos/tmysok/Protospace/issues{/number}","pulls_url":"https://api.github.com/repos/tmysok/Protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/tmysok/Protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/tmysok/Protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmysok/Protospace/labels{/name}","releases_url":"https://api.github.com/repos/tmysok/Protospace/releases{/id}","deployments_url":"https://api.github.com/repos/tmysok/Protospace/deployments","created_at":"2016-05-05T23:38:21Z","updated_at":"2016-05-06T12:36:47Z","pushed_at":"2016-06-21T21:03:37Z","git_url":"git://github.com/tmysok/Protospace.git","ssh_url":"git@github.com:tmysok/Protospace.git","clone_url":"https://github.com/tmysok/Protospace.git","svn_url":"https://github.com/tmysok/Protospace","homepage":null,"size":645,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"tmysok:master","ref":"master","sha":"d9b28f6bc402800c1325dbb1a4da219144d658fc","user":{"login":"tmysok","id":17180666,"avatar_url":"https://avatars.githubusercontent.com/u/17180666?v=3","gravatar_id":"","url":"https://api.github.com/users/tmysok","html_url":"https://github.com/tmysok","followers_url":"https://api.github.com/users/tmysok/followers","following_url":"https://api.github.com/users/tmysok/following{/other_user}","gists_url":"https://api.github.com/users/tmysok/gists{/gist_id}","starred_url":"https://api.github.com/users/tmysok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmysok/subscriptions","organizations_url":"https://api.github.com/users/tmysok/orgs","repos_url":"https://api.github.com/users/tmysok/repos","events_url":"https://api.github.com/users/tmysok/events{/privacy}","received_events_url":"https://api.github.com/users/tmysok/received_events","type":"User","site_admin":false},"repo":{"id":58167274,"name":"Protospace","full_name":"tmysok/Protospace","owner":{"login":"tmysok","id":17180666,"avatar_url":"https://avatars.githubusercontent.com/u/17180666?v=3","gravatar_id":"","url":"https://api.github.com/users/tmysok","html_url":"https://github.com/tmysok","followers_url":"https://api.github.com/users/tmysok/followers","following_url":"https://api.github.com/users/tmysok/following{/other_user}","gists_url":"https://api.github.com/users/tmysok/gists{/gist_id}","starred_url":"https://api.github.com/users/tmysok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmysok/subscriptions","organizations_url":"https://api.github.com/users/tmysok/orgs","repos_url":"https://api.github.com/users/tmysok/repos","events_url":"https://api.github.com/users/tmysok/events{/privacy}","received_events_url":"https://api.github.com/users/tmysok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmysok/Protospace","description":"","fork":false,"url":"https://api.github.com/repos/tmysok/Protospace","forks_url":"https://api.github.com/repos/tmysok/Protospace/forks","keys_url":"https://api.github.com/repos/tmysok/Protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmysok/Protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmysok/Protospace/teams","hooks_url":"https://api.github.com/repos/tmysok/Protospace/hooks","issue_events_url":"https://api.github.com/repos/tmysok/Protospace/issues/events{/number}","events_url":"https://api.github.com/repos/tmysok/Protospace/events","assignees_url":"https://api.github.com/repos/tmysok/Protospace/assignees{/user}","branches_url":"https://api.github.com/repos/tmysok/Protospace/branches{/branch}","tags_url":"https://api.github.com/repos/tmysok/Protospace/tags","blobs_url":"https://api.github.com/repos/tmysok/Protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmysok/Protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmysok/Protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmysok/Protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmysok/Protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/tmysok/Protospace/languages","stargazers_url":"https://api.github.com/repos/tmysok/Protospace/stargazers","contributors_url":"https://api.github.com/repos/tmysok/Protospace/contributors","subscribers_url":"https://api.github.com/repos/tmysok/Protospace/subscribers","subscription_url":"https://api.github.com/repos/tmysok/Protospace/subscription","commits_url":"https://api.github.com/repos/tmysok/Protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmysok/Protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmysok/Protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmysok/Protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmysok/Protospace/contents/{+path}","compare_url":"https://api.github.com/repos/tmysok/Protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmysok/Protospace/merges","archive_url":"https://api.github.com/repos/tmysok/Protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmysok/Protospace/downloads","issues_url":"https://api.github.com/repos/tmysok/Protospace/issues{/number}","pulls_url":"https://api.github.com/repos/tmysok/Protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/tmysok/Protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/tmysok/Protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmysok/Protospace/labels{/name}","releases_url":"https://api.github.com/repos/tmysok/Protospace/releases{/id}","deployments_url":"https://api.github.com/repos/tmysok/Protospace/deployments","created_at":"2016-05-05T23:38:21Z","updated_at":"2016-05-06T12:36:47Z","pushed_at":"2016-06-21T21:03:37Z","git_url":"git://github.com/tmysok/Protospace.git","ssh_url":"git@github.com:tmysok/Protospace.git","clone_url":"https://github.com/tmysok/Protospace.git","svn_url":"https://github.com/tmysok/Protospace","homepage":null,"size":645,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tmysok/Protospace/pulls/25"},"html":{"href":"https://github.com/tmysok/Protospace/pull/25"},"issue":{"href":"https://api.github.com/repos/tmysok/Protospace/issues/25"},"comments":{"href":"https://api.github.com/repos/tmysok/Protospace/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/tmysok/Protospace/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/tmysok/Protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tmysok/Protospace/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/tmysok/Protospace/statuses/2c3bf2683acc00f17b256825ad335343f74fbd7b"}}}}
{"actor":{"display_login":"tmysok"}}