{"action":"created","comment":{"url":"https://api.github.com/repos/kaylarr/dollardrains/pulls/comments/34188715","id":34188715,"diff_hunk":"@@ -1,13 +1,38 @@\n <h2>Plans</h2>\n \n <ul>\n-<% @plans.each do |plan| %>\n-  <li>\n-    <%= plan.votes %>\n-    <%= link_to '&uarr;'.html_safe, upvote_path(plan) %>\n-    <%= link_to '&darr;'.html_safe, downvote_path(plan) %> - \n-    <%= link_to plan.title, plan_path(plan) %></li>\n-<% end %>\n+  <% @plans.each do |plan| %>\n+    <li>\n+      <%= link_to(\n+            '&uarr;'.html_safe,\n+            plan_votes_path(plan, up: true),\n+            method: :post","path":"app/views/plans/index.html.erb","position":16,"original_position":16,"commit_id":"65675618a72a760be9f28c74db96146979e70f5f","original_commit_id":"65675618a72a760be9f28c74db96146979e70f5f","user":{"login":"davidrf","id":9678182,"avatar_url":"https://avatars.githubusercontent.com/u/9678182?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrf","html_url":"https://github.com/davidrf","followers_url":"https://api.github.com/users/davidrf/followers","following_url":"https://api.github.com/users/davidrf/following{/other_user}","gists_url":"https://api.github.com/users/davidrf/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrf/subscriptions","organizations_url":"https://api.github.com/users/davidrf/orgs","repos_url":"https://api.github.com/users/davidrf/repos","events_url":"https://api.github.com/users/davidrf/events{/privacy}","received_events_url":"https://api.github.com/users/davidrf/received_events","type":"User","site_admin":false},"body":"method patch","created_at":"2015-07-08T19:31:23Z","updated_at":"2015-07-08T19:31:23Z","html_url":"https://github.com/kaylarr/dollardrains/pull/24#discussion_r34188715","pull_request_url":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/kaylarr/dollardrains/pulls/comments/34188715"},"html":{"href":"https://github.com/kaylarr/dollardrains/pull/24#discussion_r34188715"},"pull_request":{"href":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24","id":39493645,"html_url":"https://github.com/kaylarr/dollardrains/pull/24","diff_url":"https://github.com/kaylarr/dollardrains/pull/24.diff","patch_url":"https://github.com/kaylarr/dollardrains/pull/24.patch","issue_url":"https://api.github.com/repos/kaylarr/dollardrains/issues/24","number":24,"state":"open","locked":false,"title":"RFR - Add up/downvote functionality and Plan scoring based on votes","user":{"login":"kaylarr","id":6306496,"avatar_url":"https://avatars.githubusercontent.com/u/6306496?v=3","gravatar_id":"","url":"https://api.github.com/users/kaylarr","html_url":"https://github.com/kaylarr","followers_url":"https://api.github.com/users/kaylarr/followers","following_url":"https://api.github.com/users/kaylarr/following{/other_user}","gists_url":"https://api.github.com/users/kaylarr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaylarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaylarr/subscriptions","organizations_url":"https://api.github.com/users/kaylarr/orgs","repos_url":"https://api.github.com/users/kaylarr/repos","events_url":"https://api.github.com/users/kaylarr/events{/privacy}","received_events_url":"https://api.github.com/users/kaylarr/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-08T16:01:01Z","updated_at":"2015-07-08T19:31:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8deaad1b72157dc931bcc80f1ac107cfa5a36f15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24/commits","review_comments_url":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24/comments","review_comment_url":"https://api.github.com/repos/kaylarr/dollardrains/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaylarr/dollardrains/issues/24/comments","statuses_url":"https://api.github.com/repos/kaylarr/dollardrains/statuses/65675618a72a760be9f28c74db96146979e70f5f","head":{"label":"kaylarr:ajax","ref":"ajax","sha":"65675618a72a760be9f28c74db96146979e70f5f","user":{"login":"kaylarr","id":6306496,"avatar_url":"https://avatars.githubusercontent.com/u/6306496?v=3","gravatar_id":"","url":"https://api.github.com/users/kaylarr","html_url":"https://github.com/kaylarr","followers_url":"https://api.github.com/users/kaylarr/followers","following_url":"https://api.github.com/users/kaylarr/following{/other_user}","gists_url":"https://api.github.com/users/kaylarr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaylarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaylarr/subscriptions","organizations_url":"https://api.github.com/users/kaylarr/orgs","repos_url":"https://api.github.com/users/kaylarr/repos","events_url":"https://api.github.com/users/kaylarr/events{/privacy}","received_events_url":"https://api.github.com/users/kaylarr/received_events","type":"User","site_admin":false},"repo":{"id":38255460,"name":"dollardrains","full_name":"kaylarr/dollardrains","owner":{"login":"kaylarr","id":6306496,"avatar_url":"https://avatars.githubusercontent.com/u/6306496?v=3","gravatar_id":"","url":"https://api.github.com/users/kaylarr","html_url":"https://github.com/kaylarr","followers_url":"https://api.github.com/users/kaylarr/followers","following_url":"https://api.github.com/users/kaylarr/following{/other_user}","gists_url":"https://api.github.com/users/kaylarr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaylarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaylarr/subscriptions","organizations_url":"https://api.github.com/users/kaylarr/orgs","repos_url":"https://api.github.com/users/kaylarr/repos","events_url":"https://api.github.com/users/kaylarr/events{/privacy}","received_events_url":"https://api.github.com/users/kaylarr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaylarr/dollardrains","description":"","fork":false,"url":"https://api.github.com/repos/kaylarr/dollardrains","forks_url":"https://api.github.com/repos/kaylarr/dollardrains/forks","keys_url":"https://api.github.com/repos/kaylarr/dollardrains/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaylarr/dollardrains/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaylarr/dollardrains/teams","hooks_url":"https://api.github.com/repos/kaylarr/dollardrains/hooks","issue_events_url":"https://api.github.com/repos/kaylarr/dollardrains/issues/events{/number}","events_url":"https://api.github.com/repos/kaylarr/dollardrains/events","assignees_url":"https://api.github.com/repos/kaylarr/dollardrains/assignees{/user}","branches_url":"https://api.github.com/repos/kaylarr/dollardrains/branches{/branch}","tags_url":"https://api.github.com/repos/kaylarr/dollardrains/tags","blobs_url":"https://api.github.com/repos/kaylarr/dollardrains/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaylarr/dollardrains/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaylarr/dollardrains/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaylarr/dollardrains/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaylarr/dollardrains/statuses/{sha}","languages_url":"https://api.github.com/repos/kaylarr/dollardrains/languages","stargazers_url":"https://api.github.com/repos/kaylarr/dollardrains/stargazers","contributors_url":"https://api.github.com/repos/kaylarr/dollardrains/contributors","subscribers_url":"https://api.github.com/repos/kaylarr/dollardrains/subscribers","subscription_url":"https://api.github.com/repos/kaylarr/dollardrains/subscription","commits_url":"https://api.github.com/repos/kaylarr/dollardrains/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaylarr/dollardrains/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaylarr/dollardrains/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaylarr/dollardrains/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaylarr/dollardrains/contents/{+path}","compare_url":"https://api.github.com/repos/kaylarr/dollardrains/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaylarr/dollardrains/merges","archive_url":"https://api.github.com/repos/kaylarr/dollardrains/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaylarr/dollardrains/downloads","issues_url":"https://api.github.com/repos/kaylarr/dollardrains/issues{/number}","pulls_url":"https://api.github.com/repos/kaylarr/dollardrains/pulls{/number}","milestones_url":"https://api.github.com/repos/kaylarr/dollardrains/milestones{/number}","notifications_url":"https://api.github.com/repos/kaylarr/dollardrains/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaylarr/dollardrains/labels{/name}","releases_url":"https://api.github.com/repos/kaylarr/dollardrains/releases{/id}","created_at":"2015-06-29T15:34:52Z","updated_at":"2015-06-30T17:21:30Z","pushed_at":"2015-07-08T19:11:14Z","git_url":"git://github.com/kaylarr/dollardrains.git","ssh_url":"git@github.com:kaylarr/dollardrains.git","clone_url":"https://github.com/kaylarr/dollardrains.git","svn_url":"https://github.com/kaylarr/dollardrains","homepage":null,"size":4836,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"kaylarr:master","ref":"master","sha":"b340148746d085b032dc6d513c7610e56ca08f17","user":{"login":"kaylarr","id":6306496,"avatar_url":"https://avatars.githubusercontent.com/u/6306496?v=3","gravatar_id":"","url":"https://api.github.com/users/kaylarr","html_url":"https://github.com/kaylarr","followers_url":"https://api.github.com/users/kaylarr/followers","following_url":"https://api.github.com/users/kaylarr/following{/other_user}","gists_url":"https://api.github.com/users/kaylarr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaylarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaylarr/subscriptions","organizations_url":"https://api.github.com/users/kaylarr/orgs","repos_url":"https://api.github.com/users/kaylarr/repos","events_url":"https://api.github.com/users/kaylarr/events{/privacy}","received_events_url":"https://api.github.com/users/kaylarr/received_events","type":"User","site_admin":false},"repo":{"id":38255460,"name":"dollardrains","full_name":"kaylarr/dollardrains","owner":{"login":"kaylarr","id":6306496,"avatar_url":"https://avatars.githubusercontent.com/u/6306496?v=3","gravatar_id":"","url":"https://api.github.com/users/kaylarr","html_url":"https://github.com/kaylarr","followers_url":"https://api.github.com/users/kaylarr/followers","following_url":"https://api.github.com/users/kaylarr/following{/other_user}","gists_url":"https://api.github.com/users/kaylarr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaylarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaylarr/subscriptions","organizations_url":"https://api.github.com/users/kaylarr/orgs","repos_url":"https://api.github.com/users/kaylarr/repos","events_url":"https://api.github.com/users/kaylarr/events{/privacy}","received_events_url":"https://api.github.com/users/kaylarr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaylarr/dollardrains","description":"","fork":false,"url":"https://api.github.com/repos/kaylarr/dollardrains","forks_url":"https://api.github.com/repos/kaylarr/dollardrains/forks","keys_url":"https://api.github.com/repos/kaylarr/dollardrains/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaylarr/dollardrains/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaylarr/dollardrains/teams","hooks_url":"https://api.github.com/repos/kaylarr/dollardrains/hooks","issue_events_url":"https://api.github.com/repos/kaylarr/dollardrains/issues/events{/number}","events_url":"https://api.github.com/repos/kaylarr/dollardrains/events","assignees_url":"https://api.github.com/repos/kaylarr/dollardrains/assignees{/user}","branches_url":"https://api.github.com/repos/kaylarr/dollardrains/branches{/branch}","tags_url":"https://api.github.com/repos/kaylarr/dollardrains/tags","blobs_url":"https://api.github.com/repos/kaylarr/dollardrains/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaylarr/dollardrains/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaylarr/dollardrains/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaylarr/dollardrains/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaylarr/dollardrains/statuses/{sha}","languages_url":"https://api.github.com/repos/kaylarr/dollardrains/languages","stargazers_url":"https://api.github.com/repos/kaylarr/dollardrains/stargazers","contributors_url":"https://api.github.com/repos/kaylarr/dollardrains/contributors","subscribers_url":"https://api.github.com/repos/kaylarr/dollardrains/subscribers","subscription_url":"https://api.github.com/repos/kaylarr/dollardrains/subscription","commits_url":"https://api.github.com/repos/kaylarr/dollardrains/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaylarr/dollardrains/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaylarr/dollardrains/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaylarr/dollardrains/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaylarr/dollardrains/contents/{+path}","compare_url":"https://api.github.com/repos/kaylarr/dollardrains/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaylarr/dollardrains/merges","archive_url":"https://api.github.com/repos/kaylarr/dollardrains/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaylarr/dollardrains/downloads","issues_url":"https://api.github.com/repos/kaylarr/dollardrains/issues{/number}","pulls_url":"https://api.github.com/repos/kaylarr/dollardrains/pulls{/number}","milestones_url":"https://api.github.com/repos/kaylarr/dollardrains/milestones{/number}","notifications_url":"https://api.github.com/repos/kaylarr/dollardrains/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaylarr/dollardrains/labels{/name}","releases_url":"https://api.github.com/repos/kaylarr/dollardrains/releases{/id}","created_at":"2015-06-29T15:34:52Z","updated_at":"2015-06-30T17:21:30Z","pushed_at":"2015-07-08T19:11:14Z","git_url":"git://github.com/kaylarr/dollardrains.git","ssh_url":"git@github.com:kaylarr/dollardrains.git","clone_url":"https://github.com/kaylarr/dollardrains.git","svn_url":"https://github.com/kaylarr/dollardrains","homepage":null,"size":4836,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24"},"html":{"href":"https://github.com/kaylarr/dollardrains/pull/24"},"issue":{"href":"https://api.github.com/repos/kaylarr/dollardrains/issues/24"},"comments":{"href":"https://api.github.com/repos/kaylarr/dollardrains/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/kaylarr/dollardrains/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaylarr/dollardrains/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/kaylarr/dollardrains/statuses/65675618a72a760be9f28c74db96146979e70f5f"}}}}