{"action":"created","comment":{"url":"https://api.github.com/repos/snowhork/protospace/pulls/comments/75568702","id":75568702,"diff_hunk":"@@ -0,0 +1,15 @@\n+class CommentsController < ApplicationController\n+  def create\n+    comment = Comment.new(comment_params)\n+    comment.save\n+    @prototype = Prototype.find(params[:prototype_id])\n+  end\n+\n+  private\n+\n+  def comment_params\n+    params.require(:comment).permit(:text)\n+          .merge(prototype_id: params[:prototype_id],\n+                 user_id: current_user.id)","path":"app/controllers/comments_controller.rb","position":13,"original_position":13,"commit_id":"d5a76deae6597b7b53f9571fbf6e68012629164e","original_commit_id":"d5a76deae6597b7b53f9571fbf6e68012629164e","user":{"login":"sa-inu","id":12888685,"avatar_url":"https://avatars.githubusercontent.com/u/12888685?v=3","gravatar_id":"","url":"https://api.github.com/users/sa-inu","html_url":"https://github.com/sa-inu","followers_url":"https://api.github.com/users/sa-inu/followers","following_url":"https://api.github.com/users/sa-inu/following{/other_user}","gists_url":"https://api.github.com/users/sa-inu/gists{/gist_id}","starred_url":"https://api.github.com/users/sa-inu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sa-inu/subscriptions","organizations_url":"https://api.github.com/users/sa-inu/orgs","repos_url":"https://api.github.com/users/sa-inu/repos","events_url":"https://api.github.com/users/sa-inu/events{/privacy}","received_events_url":"https://api.github.com/users/sa-inu/received_events","type":"User","site_admin":false},"body":"@snowhork 今のままだと、ユーザーがログインしていなければ例外を吐いてしまいます。そのあたりの条件もしっかり組込みましょう😔","created_at":"2016-08-20T00:41:16Z","updated_at":"2016-08-20T00:41:16Z","html_url":"https://github.com/snowhork/protospace/pull/15#discussion_r75568702","pull_request_url":"https://api.github.com/repos/snowhork/protospace/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/snowhork/protospace/pulls/comments/75568702"},"html":{"href":"https://github.com/snowhork/protospace/pull/15#discussion_r75568702"},"pull_request":{"href":"https://api.github.com/repos/snowhork/protospace/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/snowhork/protospace/pulls/15","id":81990471,"html_url":"https://github.com/snowhork/protospace/pull/15","diff_url":"https://github.com/snowhork/protospace/pull/15.diff","patch_url":"https://github.com/snowhork/protospace/pull/15.patch","issue_url":"https://api.github.com/repos/snowhork/protospace/issues/15","number":15,"state":"open","locked":false,"title":"Like/Comments機能 & Ajax導入","user":{"login":"snowhork","id":18437866,"avatar_url":"https://avatars.githubusercontent.com/u/18437866?v=3","gravatar_id":"","url":"https://api.github.com/users/snowhork","html_url":"https://github.com/snowhork","followers_url":"https://api.github.com/users/snowhork/followers","following_url":"https://api.github.com/users/snowhork/following{/other_user}","gists_url":"https://api.github.com/users/snowhork/gists{/gist_id}","starred_url":"https://api.github.com/users/snowhork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowhork/subscriptions","organizations_url":"https://api.github.com/users/snowhork/orgs","repos_url":"https://api.github.com/users/snowhork/repos","events_url":"https://api.github.com/users/snowhork/events{/privacy}","received_events_url":"https://api.github.com/users/snowhork/received_events","type":"User","site_admin":false},"body":"# WHAT\r\n* Ajax導入\r\n* Likeの導入\r\n* Commentsの導入\r\n\r\n# WHY\r\nユーザー同士の評価を出来るようにするため\r\n\r\n# deadline\r\n8/21\r\n\r\n# resolve\r\n#14 ","created_at":"2016-08-19T14:31:04Z","updated_at":"2016-08-20T00:41:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e75f4d9b2c0d6f16756d1673c98024ccadebb03","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/snowhork/protospace/pulls/15/commits","review_comments_url":"https://api.github.com/repos/snowhork/protospace/pulls/15/comments","review_comment_url":"https://api.github.com/repos/snowhork/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/snowhork/protospace/issues/15/comments","statuses_url":"https://api.github.com/repos/snowhork/protospace/statuses/d5a76deae6597b7b53f9571fbf6e68012629164e","head":{"label":"snowhork:feature/14_likes_comments","ref":"feature/14_likes_comments","sha":"d5a76deae6597b7b53f9571fbf6e68012629164e","user":{"login":"snowhork","id":18437866,"avatar_url":"https://avatars.githubusercontent.com/u/18437866?v=3","gravatar_id":"","url":"https://api.github.com/users/snowhork","html_url":"https://github.com/snowhork","followers_url":"https://api.github.com/users/snowhork/followers","following_url":"https://api.github.com/users/snowhork/following{/other_user}","gists_url":"https://api.github.com/users/snowhork/gists{/gist_id}","starred_url":"https://api.github.com/users/snowhork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowhork/subscriptions","organizations_url":"https://api.github.com/users/snowhork/orgs","repos_url":"https://api.github.com/users/snowhork/repos","events_url":"https://api.github.com/users/snowhork/events{/privacy}","received_events_url":"https://api.github.com/users/snowhork/received_events","type":"User","site_admin":false},"repo":{"id":64476922,"name":"protospace","full_name":"snowhork/protospace","owner":{"login":"snowhork","id":18437866,"avatar_url":"https://avatars.githubusercontent.com/u/18437866?v=3","gravatar_id":"","url":"https://api.github.com/users/snowhork","html_url":"https://github.com/snowhork","followers_url":"https://api.github.com/users/snowhork/followers","following_url":"https://api.github.com/users/snowhork/following{/other_user}","gists_url":"https://api.github.com/users/snowhork/gists{/gist_id}","starred_url":"https://api.github.com/users/snowhork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowhork/subscriptions","organizations_url":"https://api.github.com/users/snowhork/orgs","repos_url":"https://api.github.com/users/snowhork/repos","events_url":"https://api.github.com/users/snowhork/events{/privacy}","received_events_url":"https://api.github.com/users/snowhork/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snowhork/protospace","description":null,"fork":false,"url":"https://api.github.com/repos/snowhork/protospace","forks_url":"https://api.github.com/repos/snowhork/protospace/forks","keys_url":"https://api.github.com/repos/snowhork/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snowhork/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snowhork/protospace/teams","hooks_url":"https://api.github.com/repos/snowhork/protospace/hooks","issue_events_url":"https://api.github.com/repos/snowhork/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/snowhork/protospace/events","assignees_url":"https://api.github.com/repos/snowhork/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/snowhork/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/snowhork/protospace/tags","blobs_url":"https://api.github.com/repos/snowhork/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snowhork/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snowhork/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/snowhork/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snowhork/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/snowhork/protospace/languages","stargazers_url":"https://api.github.com/repos/snowhork/protospace/stargazers","contributors_url":"https://api.github.com/repos/snowhork/protospace/contributors","subscribers_url":"https://api.github.com/repos/snowhork/protospace/subscribers","subscription_url":"https://api.github.com/repos/snowhork/protospace/subscription","commits_url":"https://api.github.com/repos/snowhork/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/snowhork/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/snowhork/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/snowhork/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/snowhork/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/snowhork/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snowhork/protospace/merges","archive_url":"https://api.github.com/repos/snowhork/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snowhork/protospace/downloads","issues_url":"https://api.github.com/repos/snowhork/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/snowhork/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/snowhork/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/snowhork/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snowhork/protospace/labels{/name}","releases_url":"https://api.github.com/repos/snowhork/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/snowhork/protospace/deployments","created_at":"2016-07-29T11:53:15Z","updated_at":"2016-07-29T11:55:49Z","pushed_at":"2016-08-19T19:27:36Z","git_url":"git://github.com/snowhork/protospace.git","ssh_url":"git@github.com:snowhork/protospace.git","clone_url":"https://github.com/snowhork/protospace.git","svn_url":"https://github.com/snowhork/protospace","homepage":"","size":179,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"snowhork:master","ref":"master","sha":"e85fbea47a8967a3304c315cae284ea7c533683c","user":{"login":"snowhork","id":18437866,"avatar_url":"https://avatars.githubusercontent.com/u/18437866?v=3","gravatar_id":"","url":"https://api.github.com/users/snowhork","html_url":"https://github.com/snowhork","followers_url":"https://api.github.com/users/snowhork/followers","following_url":"https://api.github.com/users/snowhork/following{/other_user}","gists_url":"https://api.github.com/users/snowhork/gists{/gist_id}","starred_url":"https://api.github.com/users/snowhork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowhork/subscriptions","organizations_url":"https://api.github.com/users/snowhork/orgs","repos_url":"https://api.github.com/users/snowhork/repos","events_url":"https://api.github.com/users/snowhork/events{/privacy}","received_events_url":"https://api.github.com/users/snowhork/received_events","type":"User","site_admin":false},"repo":{"id":64476922,"name":"protospace","full_name":"snowhork/protospace","owner":{"login":"snowhork","id":18437866,"avatar_url":"https://avatars.githubusercontent.com/u/18437866?v=3","gravatar_id":"","url":"https://api.github.com/users/snowhork","html_url":"https://github.com/snowhork","followers_url":"https://api.github.com/users/snowhork/followers","following_url":"https://api.github.com/users/snowhork/following{/other_user}","gists_url":"https://api.github.com/users/snowhork/gists{/gist_id}","starred_url":"https://api.github.com/users/snowhork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snowhork/subscriptions","organizations_url":"https://api.github.com/users/snowhork/orgs","repos_url":"https://api.github.com/users/snowhork/repos","events_url":"https://api.github.com/users/snowhork/events{/privacy}","received_events_url":"https://api.github.com/users/snowhork/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snowhork/protospace","description":null,"fork":false,"url":"https://api.github.com/repos/snowhork/protospace","forks_url":"https://api.github.com/repos/snowhork/protospace/forks","keys_url":"https://api.github.com/repos/snowhork/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snowhork/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snowhork/protospace/teams","hooks_url":"https://api.github.com/repos/snowhork/protospace/hooks","issue_events_url":"https://api.github.com/repos/snowhork/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/snowhork/protospace/events","assignees_url":"https://api.github.com/repos/snowhork/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/snowhork/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/snowhork/protospace/tags","blobs_url":"https://api.github.com/repos/snowhork/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snowhork/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snowhork/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/snowhork/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snowhork/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/snowhork/protospace/languages","stargazers_url":"https://api.github.com/repos/snowhork/protospace/stargazers","contributors_url":"https://api.github.com/repos/snowhork/protospace/contributors","subscribers_url":"https://api.github.com/repos/snowhork/protospace/subscribers","subscription_url":"https://api.github.com/repos/snowhork/protospace/subscription","commits_url":"https://api.github.com/repos/snowhork/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/snowhork/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/snowhork/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/snowhork/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/snowhork/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/snowhork/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snowhork/protospace/merges","archive_url":"https://api.github.com/repos/snowhork/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snowhork/protospace/downloads","issues_url":"https://api.github.com/repos/snowhork/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/snowhork/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/snowhork/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/snowhork/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snowhork/protospace/labels{/name}","releases_url":"https://api.github.com/repos/snowhork/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/snowhork/protospace/deployments","created_at":"2016-07-29T11:53:15Z","updated_at":"2016-07-29T11:55:49Z","pushed_at":"2016-08-19T19:27:36Z","git_url":"git://github.com/snowhork/protospace.git","ssh_url":"git@github.com:snowhork/protospace.git","clone_url":"https://github.com/snowhork/protospace.git","svn_url":"https://github.com/snowhork/protospace","homepage":"","size":179,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/snowhork/protospace/pulls/15"},"html":{"href":"https://github.com/snowhork/protospace/pull/15"},"issue":{"href":"https://api.github.com/repos/snowhork/protospace/issues/15"},"comments":{"href":"https://api.github.com/repos/snowhork/protospace/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/snowhork/protospace/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/snowhork/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/snowhork/protospace/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/snowhork/protospace/statuses/d5a76deae6597b7b53f9571fbf6e68012629164e"}}}}
{"actor":{"display_login":"sa-inu"}}