{"action":"created","comment":{"url":"https://api.github.com/repos/akintner/scoopful/pulls/comments/94697806","pull_request_review_id":15231433,"id":94697806,"diff_hunk":"@@ -0,0 +1,17 @@\n+class CartsController < ApplicationController\n+  include ActionView::Helpers::TextHelper\n+\n+  def create\n+    item = Item.find(params[:item_id])\n+\n+    @cart.add_item(item.id)\n+    session[:cart] = @cart.contents\n+\n+    flash[:notice] = \"You now have #{pluralize(@cart.count_of(item.id), item.name)}.\"\n+    redirect_back(fallback_location: items_path)","path":"app/controllers/carts_controller.rb","position":11,"original_position":11,"commit_id":"a8704247ab956e5c6a7b3912c0c3df3bb7236fa4","original_commit_id":"a8704247ab956e5c6a7b3912c0c3df3bb7236fa4","user":{"login":"tmikeschu","id":19894032,"avatar_url":"https://avatars.githubusercontent.com/u/19894032?v=3","gravatar_id":"","url":"https://api.github.com/users/tmikeschu","html_url":"https://github.com/tmikeschu","followers_url":"https://api.github.com/users/tmikeschu/followers","following_url":"https://api.github.com/users/tmikeschu/following{/other_user}","gists_url":"https://api.github.com/users/tmikeschu/gists{/gist_id}","starred_url":"https://api.github.com/users/tmikeschu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmikeschu/subscriptions","organizations_url":"https://api.github.com/users/tmikeschu/orgs","repos_url":"https://api.github.com/users/tmikeschu/repos","events_url":"https://api.github.com/users/tmikeschu/events{/privacy}","received_events_url":"https://api.github.com/users/tmikeschu/received_events","type":"User","site_admin":false},"body":"New feature! I was using redirect_to :back, but got a nice warning saying it's deprecated for the next version\r\n","created_at":"2017-01-05T01:03:23Z","updated_at":"2017-01-05T01:03:23Z","html_url":"https://github.com/akintner/scoopful/pull/36#discussion_r94697806","pull_request_url":"https://api.github.com/repos/akintner/scoopful/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/comments/94697806"},"html":{"href":"https://github.com/akintner/scoopful/pull/36#discussion_r94697806"},"pull_request":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/akintner/scoopful/pulls/36","id":100204014,"html_url":"https://github.com/akintner/scoopful/pull/36","diff_url":"https://github.com/akintner/scoopful/pull/36.diff","patch_url":"https://github.com/akintner/scoopful/pull/36.patch","issue_url":"https://api.github.com/repos/akintner/scoopful/issues/36","number":36,"state":"open","locked":false,"title":"Add to cart #9","user":{"login":"tmikeschu","id":19894032,"avatar_url":"https://avatars.githubusercontent.com/u/19894032?v=3","gravatar_id":"","url":"https://api.github.com/users/tmikeschu","html_url":"https://github.com/tmikeschu","followers_url":"https://api.github.com/users/tmikeschu/followers","following_url":"https://api.github.com/users/tmikeschu/following{/other_user}","gists_url":"https://api.github.com/users/tmikeschu/gists{/gist_id}","starred_url":"https://api.github.com/users/tmikeschu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmikeschu/subscriptions","organizations_url":"https://api.github.com/users/tmikeschu/orgs","repos_url":"https://api.github.com/users/tmikeschu/repos","events_url":"https://api.github.com/users/tmikeschu/events{/privacy}","received_events_url":"https://api.github.com/users/tmikeschu/received_events","type":"User","site_admin":false},"body":"I still need to complete the test for the Cart poro, but the functionality is there. Pull down this branch if you want to work on styling for any cart stuff. \r\n\r\nI will finish up the test and get the major hound violations out.","created_at":"2017-01-04T22:52:13Z","updated_at":"2017-01-05T01:03:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7acdafad8cf135d442d840e411a7037e3edb2b4f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/akintner/scoopful/pulls/36/commits","review_comments_url":"https://api.github.com/repos/akintner/scoopful/pulls/36/comments","review_comment_url":"https://api.github.com/repos/akintner/scoopful/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akintner/scoopful/issues/36/comments","statuses_url":"https://api.github.com/repos/akintner/scoopful/statuses/a8704247ab956e5c6a7b3912c0c3df3bb7236fa4","head":{"label":"akintner:tms-add-to-cart-#9","ref":"tms-add-to-cart-#9","sha":"a8704247ab956e5c6a7b3912c0c3df3bb7236fa4","user":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"repo":{"id":77953639,"name":"scoopful","full_name":"akintner/scoopful","owner":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akintner/scoopful","description":"online cooking store with recipes for which we'll ship you as many of the ingredients as you need","fork":false,"url":"https://api.github.com/repos/akintner/scoopful","forks_url":"https://api.github.com/repos/akintner/scoopful/forks","keys_url":"https://api.github.com/repos/akintner/scoopful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akintner/scoopful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akintner/scoopful/teams","hooks_url":"https://api.github.com/repos/akintner/scoopful/hooks","issue_events_url":"https://api.github.com/repos/akintner/scoopful/issues/events{/number}","events_url":"https://api.github.com/repos/akintner/scoopful/events","assignees_url":"https://api.github.com/repos/akintner/scoopful/assignees{/user}","branches_url":"https://api.github.com/repos/akintner/scoopful/branches{/branch}","tags_url":"https://api.github.com/repos/akintner/scoopful/tags","blobs_url":"https://api.github.com/repos/akintner/scoopful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akintner/scoopful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akintner/scoopful/git/refs{/sha}","trees_url":"https://api.github.com/repos/akintner/scoopful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akintner/scoopful/statuses/{sha}","languages_url":"https://api.github.com/repos/akintner/scoopful/languages","stargazers_url":"https://api.github.com/repos/akintner/scoopful/stargazers","contributors_url":"https://api.github.com/repos/akintner/scoopful/contributors","subscribers_url":"https://api.github.com/repos/akintner/scoopful/subscribers","subscription_url":"https://api.github.com/repos/akintner/scoopful/subscription","commits_url":"https://api.github.com/repos/akintner/scoopful/commits{/sha}","git_commits_url":"https://api.github.com/repos/akintner/scoopful/git/commits{/sha}","comments_url":"https://api.github.com/repos/akintner/scoopful/comments{/number}","issue_comment_url":"https://api.github.com/repos/akintner/scoopful/issues/comments{/number}","contents_url":"https://api.github.com/repos/akintner/scoopful/contents/{+path}","compare_url":"https://api.github.com/repos/akintner/scoopful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akintner/scoopful/merges","archive_url":"https://api.github.com/repos/akintner/scoopful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akintner/scoopful/downloads","issues_url":"https://api.github.com/repos/akintner/scoopful/issues{/number}","pulls_url":"https://api.github.com/repos/akintner/scoopful/pulls{/number}","milestones_url":"https://api.github.com/repos/akintner/scoopful/milestones{/number}","notifications_url":"https://api.github.com/repos/akintner/scoopful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akintner/scoopful/labels{/name}","releases_url":"https://api.github.com/repos/akintner/scoopful/releases{/id}","deployments_url":"https://api.github.com/repos/akintner/scoopful/deployments","created_at":"2017-01-03T21:10:13Z","updated_at":"2017-01-03T23:01:33Z","pushed_at":"2017-01-05T00:55:38Z","git_url":"git://github.com/akintner/scoopful.git","ssh_url":"git@github.com:akintner/scoopful.git","clone_url":"https://github.com/akintner/scoopful.git","svn_url":"https://github.com/akintner/scoopful","homepage":null,"size":6638,"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":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"akintner:master","ref":"master","sha":"dbd818bc0542cb87d4c1e2ad26d37bf563132bce","user":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"repo":{"id":77953639,"name":"scoopful","full_name":"akintner/scoopful","owner":{"login":"akintner","id":20585744,"avatar_url":"https://avatars.githubusercontent.com/u/20585744?v=3","gravatar_id":"","url":"https://api.github.com/users/akintner","html_url":"https://github.com/akintner","followers_url":"https://api.github.com/users/akintner/followers","following_url":"https://api.github.com/users/akintner/following{/other_user}","gists_url":"https://api.github.com/users/akintner/gists{/gist_id}","starred_url":"https://api.github.com/users/akintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akintner/subscriptions","organizations_url":"https://api.github.com/users/akintner/orgs","repos_url":"https://api.github.com/users/akintner/repos","events_url":"https://api.github.com/users/akintner/events{/privacy}","received_events_url":"https://api.github.com/users/akintner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akintner/scoopful","description":"online cooking store with recipes for which we'll ship you as many of the ingredients as you need","fork":false,"url":"https://api.github.com/repos/akintner/scoopful","forks_url":"https://api.github.com/repos/akintner/scoopful/forks","keys_url":"https://api.github.com/repos/akintner/scoopful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akintner/scoopful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akintner/scoopful/teams","hooks_url":"https://api.github.com/repos/akintner/scoopful/hooks","issue_events_url":"https://api.github.com/repos/akintner/scoopful/issues/events{/number}","events_url":"https://api.github.com/repos/akintner/scoopful/events","assignees_url":"https://api.github.com/repos/akintner/scoopful/assignees{/user}","branches_url":"https://api.github.com/repos/akintner/scoopful/branches{/branch}","tags_url":"https://api.github.com/repos/akintner/scoopful/tags","blobs_url":"https://api.github.com/repos/akintner/scoopful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akintner/scoopful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akintner/scoopful/git/refs{/sha}","trees_url":"https://api.github.com/repos/akintner/scoopful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akintner/scoopful/statuses/{sha}","languages_url":"https://api.github.com/repos/akintner/scoopful/languages","stargazers_url":"https://api.github.com/repos/akintner/scoopful/stargazers","contributors_url":"https://api.github.com/repos/akintner/scoopful/contributors","subscribers_url":"https://api.github.com/repos/akintner/scoopful/subscribers","subscription_url":"https://api.github.com/repos/akintner/scoopful/subscription","commits_url":"https://api.github.com/repos/akintner/scoopful/commits{/sha}","git_commits_url":"https://api.github.com/repos/akintner/scoopful/git/commits{/sha}","comments_url":"https://api.github.com/repos/akintner/scoopful/comments{/number}","issue_comment_url":"https://api.github.com/repos/akintner/scoopful/issues/comments{/number}","contents_url":"https://api.github.com/repos/akintner/scoopful/contents/{+path}","compare_url":"https://api.github.com/repos/akintner/scoopful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akintner/scoopful/merges","archive_url":"https://api.github.com/repos/akintner/scoopful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akintner/scoopful/downloads","issues_url":"https://api.github.com/repos/akintner/scoopful/issues{/number}","pulls_url":"https://api.github.com/repos/akintner/scoopful/pulls{/number}","milestones_url":"https://api.github.com/repos/akintner/scoopful/milestones{/number}","notifications_url":"https://api.github.com/repos/akintner/scoopful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akintner/scoopful/labels{/name}","releases_url":"https://api.github.com/repos/akintner/scoopful/releases{/id}","deployments_url":"https://api.github.com/repos/akintner/scoopful/deployments","created_at":"2017-01-03T21:10:13Z","updated_at":"2017-01-03T23:01:33Z","pushed_at":"2017-01-05T00:55:38Z","git_url":"git://github.com/akintner/scoopful.git","ssh_url":"git@github.com:akintner/scoopful.git","clone_url":"https://github.com/akintner/scoopful.git","svn_url":"https://github.com/akintner/scoopful","homepage":null,"size":6638,"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":15,"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/36"},"html":{"href":"https://github.com/akintner/scoopful/pull/36"},"issue":{"href":"https://api.github.com/repos/akintner/scoopful/issues/36"},"comments":{"href":"https://api.github.com/repos/akintner/scoopful/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akintner/scoopful/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/akintner/scoopful/statuses/a8704247ab956e5c6a7b3912c0c3df3bb7236fa4"}}}}
{"actor":{"display_login":"tmikeschu"}}