{"action":"created","comment":{"url":"https://api.github.com/repos/kyohei0423/seo_space/pulls/comments/59967402","id":59967402,"diff_hunk":"@@ -0,0 +1,19 @@\n+- if user_signed_in?\n+  - if like.nil?\n+    = button_to prototype_likes_path(prototype), class: \"button btn btn-default increment-button\", id: \"like-button\", remote: true do\n+      = image_tag(\"icon_heart.svg\")\n+      LIKE\n+      %span.num#like-sum\n+        = prototype.likes_count\n+  - else\n+    = button_to prototype_like_path(prototype_id: prototype.id, id: like.id), method: :delete, class: \"button btn btn-default increment-button\", id: \"like-button\", remote: true do","path":"app/views/likes/_like.html.haml","position":9,"original_position":9,"commit_id":"6df9f28bf34c09f814298cb3c3fb4356cd608fc4","original_commit_id":"6df9f28bf34c09f814298cb3c3fb4356cd608fc4","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":"自信はないんだけど、like.idとprototype.idの.idって省略できたりしないかな？","created_at":"2016-04-16T13:06:20Z","updated_at":"2016-04-16T13:06:20Z","html_url":"https://github.com/kyohei0423/seo_space/pull/8#discussion_r59967402","pull_request_url":"https://api.github.com/repos/kyohei0423/seo_space/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/kyohei0423/seo_space/pulls/comments/59967402"},"html":{"href":"https://github.com/kyohei0423/seo_space/pull/8#discussion_r59967402"},"pull_request":{"href":"https://api.github.com/repos/kyohei0423/seo_space/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/kyohei0423/seo_space/pulls/8","id":66031150,"html_url":"https://github.com/kyohei0423/seo_space/pull/8","diff_url":"https://github.com/kyohei0423/seo_space/pull/8.diff","patch_url":"https://github.com/kyohei0423/seo_space/pull/8.patch","issue_url":"https://api.github.com/repos/kyohei0423/seo_space/issues/8","number":8,"state":"open","locked":false,"title":"Add comment and like function","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"body":"# what\r\nコメントとライクの保存、削除をAjaxで実装した","created_at":"2016-04-11T17:28:16Z","updated_at":"2016-04-16T13:06:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1338b0f07ff90c56fc20c76bdd8052f2c5c4d22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kyohei0423/seo_space/pulls/8/commits","review_comments_url":"https://api.github.com/repos/kyohei0423/seo_space/pulls/8/comments","review_comment_url":"https://api.github.com/repos/kyohei0423/seo_space/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kyohei0423/seo_space/issues/8/comments","statuses_url":"https://api.github.com/repos/kyohei0423/seo_space/statuses/6df9f28bf34c09f814298cb3c3fb4356cd608fc4","head":{"label":"kyohei0423:add_comment_and_like_function","ref":"add_comment_and_like_function","sha":"6df9f28bf34c09f814298cb3c3fb4356cd608fc4","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"repo":{"id":52733933,"name":"seo_space","full_name":"kyohei0423/seo_space","owner":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyohei0423/seo_space","description":"","fork":false,"url":"https://api.github.com/repos/kyohei0423/seo_space","forks_url":"https://api.github.com/repos/kyohei0423/seo_space/forks","keys_url":"https://api.github.com/repos/kyohei0423/seo_space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyohei0423/seo_space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyohei0423/seo_space/teams","hooks_url":"https://api.github.com/repos/kyohei0423/seo_space/hooks","issue_events_url":"https://api.github.com/repos/kyohei0423/seo_space/issues/events{/number}","events_url":"https://api.github.com/repos/kyohei0423/seo_space/events","assignees_url":"https://api.github.com/repos/kyohei0423/seo_space/assignees{/user}","branches_url":"https://api.github.com/repos/kyohei0423/seo_space/branches{/branch}","tags_url":"https://api.github.com/repos/kyohei0423/seo_space/tags","blobs_url":"https://api.github.com/repos/kyohei0423/seo_space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyohei0423/seo_space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyohei0423/seo_space/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyohei0423/seo_space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyohei0423/seo_space/statuses/{sha}","languages_url":"https://api.github.com/repos/kyohei0423/seo_space/languages","stargazers_url":"https://api.github.com/repos/kyohei0423/seo_space/stargazers","contributors_url":"https://api.github.com/repos/kyohei0423/seo_space/contributors","subscribers_url":"https://api.github.com/repos/kyohei0423/seo_space/subscribers","subscription_url":"https://api.github.com/repos/kyohei0423/seo_space/subscription","commits_url":"https://api.github.com/repos/kyohei0423/seo_space/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyohei0423/seo_space/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyohei0423/seo_space/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyohei0423/seo_space/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyohei0423/seo_space/contents/{+path}","compare_url":"https://api.github.com/repos/kyohei0423/seo_space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyohei0423/seo_space/merges","archive_url":"https://api.github.com/repos/kyohei0423/seo_space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyohei0423/seo_space/downloads","issues_url":"https://api.github.com/repos/kyohei0423/seo_space/issues{/number}","pulls_url":"https://api.github.com/repos/kyohei0423/seo_space/pulls{/number}","milestones_url":"https://api.github.com/repos/kyohei0423/seo_space/milestones{/number}","notifications_url":"https://api.github.com/repos/kyohei0423/seo_space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyohei0423/seo_space/labels{/name}","releases_url":"https://api.github.com/repos/kyohei0423/seo_space/releases{/id}","deployments_url":"https://api.github.com/repos/kyohei0423/seo_space/deployments","created_at":"2016-02-28T17:36:09Z","updated_at":"2016-02-28T17:46:14Z","pushed_at":"2016-04-16T08:56:00Z","git_url":"git://github.com/kyohei0423/seo_space.git","ssh_url":"git@github.com:kyohei0423/seo_space.git","clone_url":"https://github.com/kyohei0423/seo_space.git","svn_url":"https://github.com/kyohei0423/seo_space","homepage":"","size":1699,"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":"kyohei0423:master","ref":"master","sha":"e92aeddc2a339ef1766cf1a734976d89f0973a7d","user":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"repo":{"id":52733933,"name":"seo_space","full_name":"kyohei0423/seo_space","owner":{"login":"kyohei0423","id":7753180,"avatar_url":"https://avatars.githubusercontent.com/u/7753180?v=3","gravatar_id":"","url":"https://api.github.com/users/kyohei0423","html_url":"https://github.com/kyohei0423","followers_url":"https://api.github.com/users/kyohei0423/followers","following_url":"https://api.github.com/users/kyohei0423/following{/other_user}","gists_url":"https://api.github.com/users/kyohei0423/gists{/gist_id}","starred_url":"https://api.github.com/users/kyohei0423/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyohei0423/subscriptions","organizations_url":"https://api.github.com/users/kyohei0423/orgs","repos_url":"https://api.github.com/users/kyohei0423/repos","events_url":"https://api.github.com/users/kyohei0423/events{/privacy}","received_events_url":"https://api.github.com/users/kyohei0423/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyohei0423/seo_space","description":"","fork":false,"url":"https://api.github.com/repos/kyohei0423/seo_space","forks_url":"https://api.github.com/repos/kyohei0423/seo_space/forks","keys_url":"https://api.github.com/repos/kyohei0423/seo_space/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyohei0423/seo_space/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyohei0423/seo_space/teams","hooks_url":"https://api.github.com/repos/kyohei0423/seo_space/hooks","issue_events_url":"https://api.github.com/repos/kyohei0423/seo_space/issues/events{/number}","events_url":"https://api.github.com/repos/kyohei0423/seo_space/events","assignees_url":"https://api.github.com/repos/kyohei0423/seo_space/assignees{/user}","branches_url":"https://api.github.com/repos/kyohei0423/seo_space/branches{/branch}","tags_url":"https://api.github.com/repos/kyohei0423/seo_space/tags","blobs_url":"https://api.github.com/repos/kyohei0423/seo_space/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyohei0423/seo_space/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyohei0423/seo_space/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyohei0423/seo_space/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyohei0423/seo_space/statuses/{sha}","languages_url":"https://api.github.com/repos/kyohei0423/seo_space/languages","stargazers_url":"https://api.github.com/repos/kyohei0423/seo_space/stargazers","contributors_url":"https://api.github.com/repos/kyohei0423/seo_space/contributors","subscribers_url":"https://api.github.com/repos/kyohei0423/seo_space/subscribers","subscription_url":"https://api.github.com/repos/kyohei0423/seo_space/subscription","commits_url":"https://api.github.com/repos/kyohei0423/seo_space/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyohei0423/seo_space/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyohei0423/seo_space/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyohei0423/seo_space/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyohei0423/seo_space/contents/{+path}","compare_url":"https://api.github.com/repos/kyohei0423/seo_space/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyohei0423/seo_space/merges","archive_url":"https://api.github.com/repos/kyohei0423/seo_space/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyohei0423/seo_space/downloads","issues_url":"https://api.github.com/repos/kyohei0423/seo_space/issues{/number}","pulls_url":"https://api.github.com/repos/kyohei0423/seo_space/pulls{/number}","milestones_url":"https://api.github.com/repos/kyohei0423/seo_space/milestones{/number}","notifications_url":"https://api.github.com/repos/kyohei0423/seo_space/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyohei0423/seo_space/labels{/name}","releases_url":"https://api.github.com/repos/kyohei0423/seo_space/releases{/id}","deployments_url":"https://api.github.com/repos/kyohei0423/seo_space/deployments","created_at":"2016-02-28T17:36:09Z","updated_at":"2016-02-28T17:46:14Z","pushed_at":"2016-04-16T08:56:00Z","git_url":"git://github.com/kyohei0423/seo_space.git","ssh_url":"git@github.com:kyohei0423/seo_space.git","clone_url":"https://github.com/kyohei0423/seo_space.git","svn_url":"https://github.com/kyohei0423/seo_space","homepage":"","size":1699,"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/kyohei0423/seo_space/pulls/8"},"html":{"href":"https://github.com/kyohei0423/seo_space/pull/8"},"issue":{"href":"https://api.github.com/repos/kyohei0423/seo_space/issues/8"},"comments":{"href":"https://api.github.com/repos/kyohei0423/seo_space/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/kyohei0423/seo_space/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/kyohei0423/seo_space/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kyohei0423/seo_space/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/kyohei0423/seo_space/statuses/6df9f28bf34c09f814298cb3c3fb4356cd608fc4"}}}}