{"action":"created","comment":{"url":"https://api.github.com/repos/seeker105/the_pivot/pulls/comments/69382182","id":69382182,"diff_hunk":"@@ -0,0 +1,7 @@\n+<% if @businesses.count > 0 %>","path":"app/views/businesses/index.html.erb","position":1,"original_position":1,"commit_id":"f4f62fa97d12e6e6f283370d8a3aa9844f9a4050","original_commit_id":"f4f62fa97d12e6e6f283370d8a3aa9844f9a4050","user":{"login":"ErinGreenhalgh","id":16656094,"avatar_url":"https://avatars.githubusercontent.com/u/16656094?v=3","gravatar_id":"","url":"https://api.github.com/users/ErinGreenhalgh","html_url":"https://github.com/ErinGreenhalgh","followers_url":"https://api.github.com/users/ErinGreenhalgh/followers","following_url":"https://api.github.com/users/ErinGreenhalgh/following{/other_user}","gists_url":"https://api.github.com/users/ErinGreenhalgh/gists{/gist_id}","starred_url":"https://api.github.com/users/ErinGreenhalgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErinGreenhalgh/subscriptions","organizations_url":"https://api.github.com/users/ErinGreenhalgh/orgs","repos_url":"https://api.github.com/users/ErinGreenhalgh/repos","events_url":"https://api.github.com/users/ErinGreenhalgh/events{/privacy}","received_events_url":"https://api.github.com/users/ErinGreenhalgh/received_events","type":"User","site_admin":false},"body":"I think there is a more active record way to do this, something like if businesses.exist... we can look into it ","created_at":"2016-07-02T20:09:36Z","updated_at":"2016-07-02T20:09:36Z","html_url":"https://github.com/seeker105/the_pivot/pull/63#discussion_r69382182","pull_request_url":"https://api.github.com/repos/seeker105/the_pivot/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/seeker105/the_pivot/pulls/comments/69382182"},"html":{"href":"https://github.com/seeker105/the_pivot/pull/63#discussion_r69382182"},"pull_request":{"href":"https://api.github.com/repos/seeker105/the_pivot/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/seeker105/the_pivot/pulls/63","id":76073544,"html_url":"https://github.com/seeker105/the_pivot/pull/63","diff_url":"https://github.com/seeker105/the_pivot/pull/63.diff","patch_url":"https://github.com/seeker105/the_pivot/pull/63.patch","issue_url":"https://api.github.com/repos/seeker105/the_pivot/issues/63","number":63,"state":"open","locked":false,"title":"4 create business index view","user":{"login":"seeker105","id":15236021,"avatar_url":"https://avatars.githubusercontent.com/u/15236021?v=3","gravatar_id":"","url":"https://api.github.com/users/seeker105","html_url":"https://github.com/seeker105","followers_url":"https://api.github.com/users/seeker105/followers","following_url":"https://api.github.com/users/seeker105/following{/other_user}","gists_url":"https://api.github.com/users/seeker105/gists{/gist_id}","starred_url":"https://api.github.com/users/seeker105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeker105/subscriptions","organizations_url":"https://api.github.com/users/seeker105/orgs","repos_url":"https://api.github.com/users/seeker105/repos","events_url":"https://api.github.com/users/seeker105/events{/privacy}","received_events_url":"https://api.github.com/users/seeker105/received_events","type":"User","site_admin":false},"body":"Add `business_id` field to Items table. Create 'Business Index' link on navbar. Create Business index page. Each business name is a link to an index of that business's items.","created_at":"2016-07-02T20:07:54Z","updated_at":"2016-07-02T20:09:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2f129b69f1460d5671e490bd32c18220b6a1480","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/seeker105/the_pivot/pulls/63/commits","review_comments_url":"https://api.github.com/repos/seeker105/the_pivot/pulls/63/comments","review_comment_url":"https://api.github.com/repos/seeker105/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/seeker105/the_pivot/issues/63/comments","statuses_url":"https://api.github.com/repos/seeker105/the_pivot/statuses/f4f62fa97d12e6e6f283370d8a3aa9844f9a4050","head":{"label":"seeker105:4_create_business_index_view","ref":"4_create_business_index_view","sha":"f4f62fa97d12e6e6f283370d8a3aa9844f9a4050","user":{"login":"seeker105","id":15236021,"avatar_url":"https://avatars.githubusercontent.com/u/15236021?v=3","gravatar_id":"","url":"https://api.github.com/users/seeker105","html_url":"https://github.com/seeker105","followers_url":"https://api.github.com/users/seeker105/followers","following_url":"https://api.github.com/users/seeker105/following{/other_user}","gists_url":"https://api.github.com/users/seeker105/gists{/gist_id}","starred_url":"https://api.github.com/users/seeker105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeker105/subscriptions","organizations_url":"https://api.github.com/users/seeker105/orgs","repos_url":"https://api.github.com/users/seeker105/repos","events_url":"https://api.github.com/users/seeker105/events{/privacy}","received_events_url":"https://api.github.com/users/seeker105/received_events","type":"User","site_admin":false},"repo":{"id":62087291,"name":"the_pivot","full_name":"seeker105/the_pivot","owner":{"login":"seeker105","id":15236021,"avatar_url":"https://avatars.githubusercontent.com/u/15236021?v=3","gravatar_id":"","url":"https://api.github.com/users/seeker105","html_url":"https://github.com/seeker105","followers_url":"https://api.github.com/users/seeker105/followers","following_url":"https://api.github.com/users/seeker105/following{/other_user}","gists_url":"https://api.github.com/users/seeker105/gists{/gist_id}","starred_url":"https://api.github.com/users/seeker105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeker105/subscriptions","organizations_url":"https://api.github.com/users/seeker105/orgs","repos_url":"https://api.github.com/users/seeker105/repos","events_url":"https://api.github.com/users/seeker105/events{/privacy}","received_events_url":"https://api.github.com/users/seeker105/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seeker105/the_pivot","description":null,"fork":false,"url":"https://api.github.com/repos/seeker105/the_pivot","forks_url":"https://api.github.com/repos/seeker105/the_pivot/forks","keys_url":"https://api.github.com/repos/seeker105/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seeker105/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seeker105/the_pivot/teams","hooks_url":"https://api.github.com/repos/seeker105/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/seeker105/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/seeker105/the_pivot/events","assignees_url":"https://api.github.com/repos/seeker105/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/seeker105/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/seeker105/the_pivot/tags","blobs_url":"https://api.github.com/repos/seeker105/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seeker105/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seeker105/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/seeker105/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seeker105/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/seeker105/the_pivot/languages","stargazers_url":"https://api.github.com/repos/seeker105/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/seeker105/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/seeker105/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/seeker105/the_pivot/subscription","commits_url":"https://api.github.com/repos/seeker105/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/seeker105/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/seeker105/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/seeker105/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/seeker105/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/seeker105/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seeker105/the_pivot/merges","archive_url":"https://api.github.com/repos/seeker105/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seeker105/the_pivot/downloads","issues_url":"https://api.github.com/repos/seeker105/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/seeker105/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/seeker105/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/seeker105/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seeker105/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/seeker105/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/seeker105/the_pivot/deployments","created_at":"2016-06-27T20:50:19Z","updated_at":"2016-06-27T20:55:11Z","pushed_at":"2016-07-02T20:07:54Z","git_url":"git://github.com/seeker105/the_pivot.git","ssh_url":"git@github.com:seeker105/the_pivot.git","clone_url":"https://github.com/seeker105/the_pivot.git","svn_url":"https://github.com/seeker105/the_pivot","homepage":null,"size":427,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":26,"forks":1,"open_issues":26,"watchers":0,"default_branch":"master"}},"base":{"label":"seeker105:development","ref":"development","sha":"64757de7061559ce5514909c5a7492ab8d305896","user":{"login":"seeker105","id":15236021,"avatar_url":"https://avatars.githubusercontent.com/u/15236021?v=3","gravatar_id":"","url":"https://api.github.com/users/seeker105","html_url":"https://github.com/seeker105","followers_url":"https://api.github.com/users/seeker105/followers","following_url":"https://api.github.com/users/seeker105/following{/other_user}","gists_url":"https://api.github.com/users/seeker105/gists{/gist_id}","starred_url":"https://api.github.com/users/seeker105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeker105/subscriptions","organizations_url":"https://api.github.com/users/seeker105/orgs","repos_url":"https://api.github.com/users/seeker105/repos","events_url":"https://api.github.com/users/seeker105/events{/privacy}","received_events_url":"https://api.github.com/users/seeker105/received_events","type":"User","site_admin":false},"repo":{"id":62087291,"name":"the_pivot","full_name":"seeker105/the_pivot","owner":{"login":"seeker105","id":15236021,"avatar_url":"https://avatars.githubusercontent.com/u/15236021?v=3","gravatar_id":"","url":"https://api.github.com/users/seeker105","html_url":"https://github.com/seeker105","followers_url":"https://api.github.com/users/seeker105/followers","following_url":"https://api.github.com/users/seeker105/following{/other_user}","gists_url":"https://api.github.com/users/seeker105/gists{/gist_id}","starred_url":"https://api.github.com/users/seeker105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seeker105/subscriptions","organizations_url":"https://api.github.com/users/seeker105/orgs","repos_url":"https://api.github.com/users/seeker105/repos","events_url":"https://api.github.com/users/seeker105/events{/privacy}","received_events_url":"https://api.github.com/users/seeker105/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/seeker105/the_pivot","description":null,"fork":false,"url":"https://api.github.com/repos/seeker105/the_pivot","forks_url":"https://api.github.com/repos/seeker105/the_pivot/forks","keys_url":"https://api.github.com/repos/seeker105/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/seeker105/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/seeker105/the_pivot/teams","hooks_url":"https://api.github.com/repos/seeker105/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/seeker105/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/seeker105/the_pivot/events","assignees_url":"https://api.github.com/repos/seeker105/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/seeker105/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/seeker105/the_pivot/tags","blobs_url":"https://api.github.com/repos/seeker105/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/seeker105/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/seeker105/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/seeker105/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/seeker105/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/seeker105/the_pivot/languages","stargazers_url":"https://api.github.com/repos/seeker105/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/seeker105/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/seeker105/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/seeker105/the_pivot/subscription","commits_url":"https://api.github.com/repos/seeker105/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/seeker105/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/seeker105/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/seeker105/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/seeker105/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/seeker105/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/seeker105/the_pivot/merges","archive_url":"https://api.github.com/repos/seeker105/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/seeker105/the_pivot/downloads","issues_url":"https://api.github.com/repos/seeker105/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/seeker105/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/seeker105/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/seeker105/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/seeker105/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/seeker105/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/seeker105/the_pivot/deployments","created_at":"2016-06-27T20:50:19Z","updated_at":"2016-06-27T20:55:11Z","pushed_at":"2016-07-02T20:07:54Z","git_url":"git://github.com/seeker105/the_pivot.git","ssh_url":"git@github.com:seeker105/the_pivot.git","clone_url":"https://github.com/seeker105/the_pivot.git","svn_url":"https://github.com/seeker105/the_pivot","homepage":null,"size":427,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":26,"forks":1,"open_issues":26,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/seeker105/the_pivot/pulls/63"},"html":{"href":"https://github.com/seeker105/the_pivot/pull/63"},"issue":{"href":"https://api.github.com/repos/seeker105/the_pivot/issues/63"},"comments":{"href":"https://api.github.com/repos/seeker105/the_pivot/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/seeker105/the_pivot/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/seeker105/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/seeker105/the_pivot/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/seeker105/the_pivot/statuses/f4f62fa97d12e6e6f283370d8a3aa9844f9a4050"}}}}
{"actor":{"display_login":"ErinGreenhalgh"}}