{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/comments/46226991","id":46226991,"diff_hunk":"@@ -0,0 +1,36 @@\n+class ProductsController < ApplicationController\n+  def index\n+    @products = Product.all\n+  end\n+\n+  def new\n+    @product = Product.new\n+  end\n+\n+  def create\n+    product = Product.create(name: product_params[:product][:name], vendor_id: params[:vendor_id])\n+    redirect_to vendor_path(params[:vendor_id])","path":"app/controllers/products_controller.rb","position":12,"original_position":12,"commit_id":"56d42867e4f00de6c77e05a29a6bdc370e1365a9","original_commit_id":"56d42867e4f00de6c77e05a29a6bdc370e1365a9","user":{"login":"kariabancroft","id":7269204,"avatar_url":"https://avatars.githubusercontent.com/u/7269204?v=3","gravatar_id":"","url":"https://api.github.com/users/kariabancroft","html_url":"https://github.com/kariabancroft","followers_url":"https://api.github.com/users/kariabancroft/followers","following_url":"https://api.github.com/users/kariabancroft/following{/other_user}","gists_url":"https://api.github.com/users/kariabancroft/gists{/gist_id}","starred_url":"https://api.github.com/users/kariabancroft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kariabancroft/subscriptions","organizations_url":"https://api.github.com/users/kariabancroft/orgs","repos_url":"https://api.github.com/users/kariabancroft/repos","events_url":"https://api.github.com/users/kariabancroft/events{/privacy}","received_events_url":"https://api.github.com/users/kariabancroft/received_events","type":"User","site_admin":false},"body":"Nice use of the named route here","created_at":"2015-12-01T00:48:11Z","updated_at":"2015-12-01T00:48:11Z","html_url":"https://github.com/Ada-C4/FarMarRails/pull/21#discussion_r46226991","pull_request_url":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/comments/46226991"},"html":{"href":"https://github.com/Ada-C4/FarMarRails/pull/21#discussion_r46226991"},"pull_request":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21","id":51486291,"html_url":"https://github.com/Ada-C4/FarMarRails/pull/21","diff_url":"https://github.com/Ada-C4/FarMarRails/pull/21.diff","patch_url":"https://github.com/Ada-C4/FarMarRails/pull/21.patch","issue_url":"https://api.github.com/repos/Ada-C4/FarMarRails/issues/21","number":21,"state":"open","locked":false,"title":"FarMarRails","user":{"login":"lacuchilla","id":5484041,"avatar_url":"https://avatars.githubusercontent.com/u/5484041?v=3","gravatar_id":"","url":"https://api.github.com/users/lacuchilla","html_url":"https://github.com/lacuchilla","followers_url":"https://api.github.com/users/lacuchilla/followers","following_url":"https://api.github.com/users/lacuchilla/following{/other_user}","gists_url":"https://api.github.com/users/lacuchilla/gists{/gist_id}","starred_url":"https://api.github.com/users/lacuchilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacuchilla/subscriptions","organizations_url":"https://api.github.com/users/lacuchilla/orgs","repos_url":"https://api.github.com/users/lacuchilla/repos","events_url":"https://api.github.com/users/lacuchilla/events{/privacy}","received_events_url":"https://api.github.com/users/lacuchilla/received_events","type":"User","site_admin":false},"body":"FarMarRails project for Amy Hunter and Claire Schechter. URL is https://farmersmarketdata.herokuapp.com/ ","created_at":"2015-11-23T04:00:44Z","updated_at":"2015-12-01T00:48:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a94d55a6a8588f7c45aee69ac5303405d08510d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C4/FarMarRails/issues/21/comments","statuses_url":"https://api.github.com/repos/Ada-C4/FarMarRails/statuses/56d42867e4f00de6c77e05a29a6bdc370e1365a9","head":{"label":"lacuchilla:arhcas/master","ref":"arhcas/master","sha":"56d42867e4f00de6c77e05a29a6bdc370e1365a9","user":{"login":"lacuchilla","id":5484041,"avatar_url":"https://avatars.githubusercontent.com/u/5484041?v=3","gravatar_id":"","url":"https://api.github.com/users/lacuchilla","html_url":"https://github.com/lacuchilla","followers_url":"https://api.github.com/users/lacuchilla/followers","following_url":"https://api.github.com/users/lacuchilla/following{/other_user}","gists_url":"https://api.github.com/users/lacuchilla/gists{/gist_id}","starred_url":"https://api.github.com/users/lacuchilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacuchilla/subscriptions","organizations_url":"https://api.github.com/users/lacuchilla/orgs","repos_url":"https://api.github.com/users/lacuchilla/repos","events_url":"https://api.github.com/users/lacuchilla/events{/privacy}","received_events_url":"https://api.github.com/users/lacuchilla/received_events","type":"User","site_admin":false},"repo":{"id":46383202,"name":"FarMarRails","full_name":"lacuchilla/FarMarRails","owner":{"login":"lacuchilla","id":5484041,"avatar_url":"https://avatars.githubusercontent.com/u/5484041?v=3","gravatar_id":"","url":"https://api.github.com/users/lacuchilla","html_url":"https://github.com/lacuchilla","followers_url":"https://api.github.com/users/lacuchilla/followers","following_url":"https://api.github.com/users/lacuchilla/following{/other_user}","gists_url":"https://api.github.com/users/lacuchilla/gists{/gist_id}","starred_url":"https://api.github.com/users/lacuchilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacuchilla/subscriptions","organizations_url":"https://api.github.com/users/lacuchilla/orgs","repos_url":"https://api.github.com/users/lacuchilla/repos","events_url":"https://api.github.com/users/lacuchilla/events{/privacy}","received_events_url":"https://api.github.com/users/lacuchilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lacuchilla/FarMarRails","description":"","fork":true,"url":"https://api.github.com/repos/lacuchilla/FarMarRails","forks_url":"https://api.github.com/repos/lacuchilla/FarMarRails/forks","keys_url":"https://api.github.com/repos/lacuchilla/FarMarRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lacuchilla/FarMarRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lacuchilla/FarMarRails/teams","hooks_url":"https://api.github.com/repos/lacuchilla/FarMarRails/hooks","issue_events_url":"https://api.github.com/repos/lacuchilla/FarMarRails/issues/events{/number}","events_url":"https://api.github.com/repos/lacuchilla/FarMarRails/events","assignees_url":"https://api.github.com/repos/lacuchilla/FarMarRails/assignees{/user}","branches_url":"https://api.github.com/repos/lacuchilla/FarMarRails/branches{/branch}","tags_url":"https://api.github.com/repos/lacuchilla/FarMarRails/tags","blobs_url":"https://api.github.com/repos/lacuchilla/FarMarRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lacuchilla/FarMarRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lacuchilla/FarMarRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/lacuchilla/FarMarRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lacuchilla/FarMarRails/statuses/{sha}","languages_url":"https://api.github.com/repos/lacuchilla/FarMarRails/languages","stargazers_url":"https://api.github.com/repos/lacuchilla/FarMarRails/stargazers","contributors_url":"https://api.github.com/repos/lacuchilla/FarMarRails/contributors","subscribers_url":"https://api.github.com/repos/lacuchilla/FarMarRails/subscribers","subscription_url":"https://api.github.com/repos/lacuchilla/FarMarRails/subscription","commits_url":"https://api.github.com/repos/lacuchilla/FarMarRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/lacuchilla/FarMarRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/lacuchilla/FarMarRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/lacuchilla/FarMarRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/lacuchilla/FarMarRails/contents/{+path}","compare_url":"https://api.github.com/repos/lacuchilla/FarMarRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lacuchilla/FarMarRails/merges","archive_url":"https://api.github.com/repos/lacuchilla/FarMarRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lacuchilla/FarMarRails/downloads","issues_url":"https://api.github.com/repos/lacuchilla/FarMarRails/issues{/number}","pulls_url":"https://api.github.com/repos/lacuchilla/FarMarRails/pulls{/number}","milestones_url":"https://api.github.com/repos/lacuchilla/FarMarRails/milestones{/number}","notifications_url":"https://api.github.com/repos/lacuchilla/FarMarRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lacuchilla/FarMarRails/labels{/name}","releases_url":"https://api.github.com/repos/lacuchilla/FarMarRails/releases{/id}","created_at":"2015-11-17T23:54:45Z","updated_at":"2015-11-18T00:01:41Z","pushed_at":"2015-11-23T00:21:38Z","git_url":"git://github.com/lacuchilla/FarMarRails.git","ssh_url":"git@github.com:lacuchilla/FarMarRails.git","clone_url":"https://github.com/lacuchilla/FarMarRails.git","svn_url":"https://github.com/lacuchilla/FarMarRails","homepage":null,"size":5657,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-C4:arhcas/master","ref":"arhcas/master","sha":"eaf8f85414b0b3dd8bae669985d7ea96c46f8a62","user":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"repo":{"id":46368225,"name":"FarMarRails","full_name":"Ada-C4/FarMarRails","owner":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C4/FarMarRails","description":"","fork":true,"url":"https://api.github.com/repos/Ada-C4/FarMarRails","forks_url":"https://api.github.com/repos/Ada-C4/FarMarRails/forks","keys_url":"https://api.github.com/repos/Ada-C4/FarMarRails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C4/FarMarRails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C4/FarMarRails/teams","hooks_url":"https://api.github.com/repos/Ada-C4/FarMarRails/hooks","issue_events_url":"https://api.github.com/repos/Ada-C4/FarMarRails/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C4/FarMarRails/events","assignees_url":"https://api.github.com/repos/Ada-C4/FarMarRails/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C4/FarMarRails/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C4/FarMarRails/tags","blobs_url":"https://api.github.com/repos/Ada-C4/FarMarRails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C4/FarMarRails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C4/FarMarRails/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C4/FarMarRails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C4/FarMarRails/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C4/FarMarRails/languages","stargazers_url":"https://api.github.com/repos/Ada-C4/FarMarRails/stargazers","contributors_url":"https://api.github.com/repos/Ada-C4/FarMarRails/contributors","subscribers_url":"https://api.github.com/repos/Ada-C4/FarMarRails/subscribers","subscription_url":"https://api.github.com/repos/Ada-C4/FarMarRails/subscription","commits_url":"https://api.github.com/repos/Ada-C4/FarMarRails/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C4/FarMarRails/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C4/FarMarRails/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C4/FarMarRails/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C4/FarMarRails/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C4/FarMarRails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C4/FarMarRails/merges","archive_url":"https://api.github.com/repos/Ada-C4/FarMarRails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C4/FarMarRails/downloads","issues_url":"https://api.github.com/repos/Ada-C4/FarMarRails/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C4/FarMarRails/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C4/FarMarRails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C4/FarMarRails/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C4/FarMarRails/releases{/id}","created_at":"2015-11-17T18:54:06Z","updated_at":"2015-11-10T20:54:30Z","pushed_at":"2015-11-24T21:41:36Z","git_url":"git://github.com/Ada-C4/FarMarRails.git","ssh_url":"git@github.com:Ada-C4/FarMarRails.git","clone_url":"https://github.com/Ada-C4/FarMarRails.git","svn_url":"https://github.com/Ada-C4/FarMarRails","homepage":null,"size":835,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":11,"forks":12,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21"},"html":{"href":"https://github.com/Ada-C4/FarMarRails/pull/21"},"issue":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/issues/21"},"comments":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C4/FarMarRails/statuses/56d42867e4f00de6c77e05a29a6bdc370e1365a9"}}}}