{"action":"created","comment":{"url":"https://api.github.com/repos/ryanflach/the_pivot/pulls/comments/75607580","id":75607580,"diff_hunk":"@@ -51,7 +57,7 @@ def params_with_venue\n   end\n \n   def set_event\n-    @event = Event.find_by(slug: params[:id])\n+    @event = Event.find_by_slug(params[:id])","path":"app/controllers/admin/events_controller.rb","position":25,"original_position":25,"commit_id":"b6207536fba4704099610c25d1077173e73ebaaf","original_commit_id":"b6207536fba4704099610c25d1077173e73ebaaf","user":{"login":"matthewrpacker","id":14930925,"avatar_url":"https://avatars.githubusercontent.com/u/14930925?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrpacker","html_url":"https://github.com/matthewrpacker","followers_url":"https://api.github.com/users/matthewrpacker/followers","following_url":"https://api.github.com/users/matthewrpacker/following{/other_user}","gists_url":"https://api.github.com/users/matthewrpacker/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrpacker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrpacker/subscriptions","organizations_url":"https://api.github.com/users/matthewrpacker/orgs","repos_url":"https://api.github.com/users/matthewrpacker/repos","events_url":"https://api.github.com/users/matthewrpacker/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrpacker/received_events","type":"User","site_admin":false},"body":"@GSmes \r\n- Great use of built-in active record associations (find_by_slug).","created_at":"2016-08-22T00:50:14Z","updated_at":"2016-08-22T00:50:14Z","html_url":"https://github.com/ryanflach/the_pivot/pull/95#discussion_r75607580","pull_request_url":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/ryanflach/the_pivot/pulls/comments/75607580"},"html":{"href":"https://github.com/ryanflach/the_pivot/pull/95#discussion_r75607580"},"pull_request":{"href":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95","id":82122001,"html_url":"https://github.com/ryanflach/the_pivot/pull/95","diff_url":"https://github.com/ryanflach/the_pivot/pull/95.diff","patch_url":"https://github.com/ryanflach/the_pivot/pull/95.patch","issue_url":"https://api.github.com/repos/ryanflach/the_pivot/issues/95","number":95,"state":"open","locked":false,"title":"Close #29 Venue Admin can delete event.","user":{"login":"GSmes","id":17463835,"avatar_url":"https://avatars.githubusercontent.com/u/17463835?v=3","gravatar_id":"","url":"https://api.github.com/users/GSmes","html_url":"https://github.com/GSmes","followers_url":"https://api.github.com/users/GSmes/followers","following_url":"https://api.github.com/users/GSmes/following{/other_user}","gists_url":"https://api.github.com/users/GSmes/gists{/gist_id}","starred_url":"https://api.github.com/users/GSmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GSmes/subscriptions","organizations_url":"https://api.github.com/users/GSmes/orgs","repos_url":"https://api.github.com/users/GSmes/repos","events_url":"https://api.github.com/users/GSmes/events{/privacy}","received_events_url":"https://api.github.com/users/GSmes/received_events","type":"User","site_admin":false},"body":"@ryanflach & @matthewrpacker : See below for changes. All tests are passing with all of these changes in place.\r\n\r\n- Add admin namespaced route to destroy for events.\r\n- Add controller method for delete in Admin/events_contoller.\r\n- Add delete button to event show page when user is admin.\r\n- Add delete button to event list on venue show page when user is admin.\r\n- Add admin_can_delete_an_event_spec to test event deletion functionality.\r\n- Make buttons for adding event all match (i.e., display Add New Event & make button green).\r\n- Update admin_creates_an_event_spec to reflect the renaming of buttons to Add New Event.\r\n- Updated flash_styling after noticing flash messages weren't centered.","created_at":"2016-08-22T00:20:38Z","updated_at":"2016-08-22T00:50:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cdb0c21691eaf4cfba2772dc09b89dc1bdea4937","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95/commits","review_comments_url":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95/comments","review_comment_url":"https://api.github.com/repos/ryanflach/the_pivot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ryanflach/the_pivot/issues/95/comments","statuses_url":"https://api.github.com/repos/ryanflach/the_pivot/statuses/b6207536fba4704099610c25d1077173e73ebaaf","head":{"label":"GSmes:event_delete","ref":"event_delete","sha":"b6207536fba4704099610c25d1077173e73ebaaf","user":{"login":"GSmes","id":17463835,"avatar_url":"https://avatars.githubusercontent.com/u/17463835?v=3","gravatar_id":"","url":"https://api.github.com/users/GSmes","html_url":"https://github.com/GSmes","followers_url":"https://api.github.com/users/GSmes/followers","following_url":"https://api.github.com/users/GSmes/following{/other_user}","gists_url":"https://api.github.com/users/GSmes/gists{/gist_id}","starred_url":"https://api.github.com/users/GSmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GSmes/subscriptions","organizations_url":"https://api.github.com/users/GSmes/orgs","repos_url":"https://api.github.com/users/GSmes/repos","events_url":"https://api.github.com/users/GSmes/events{/privacy}","received_events_url":"https://api.github.com/users/GSmes/received_events","type":"User","site_admin":false},"repo":{"id":65758703,"name":"the_pivot","full_name":"GSmes/the_pivot","owner":{"login":"GSmes","id":17463835,"avatar_url":"https://avatars.githubusercontent.com/u/17463835?v=3","gravatar_id":"","url":"https://api.github.com/users/GSmes","html_url":"https://github.com/GSmes","followers_url":"https://api.github.com/users/GSmes/followers","following_url":"https://api.github.com/users/GSmes/following{/other_user}","gists_url":"https://api.github.com/users/GSmes/gists{/gist_id}","starred_url":"https://api.github.com/users/GSmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GSmes/subscriptions","organizations_url":"https://api.github.com/users/GSmes/orgs","repos_url":"https://api.github.com/users/GSmes/repos","events_url":"https://api.github.com/users/GSmes/events{/privacy}","received_events_url":"https://api.github.com/users/GSmes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GSmes/the_pivot","description":"Turing Mod3 week 1-2 group project","fork":true,"url":"https://api.github.com/repos/GSmes/the_pivot","forks_url":"https://api.github.com/repos/GSmes/the_pivot/forks","keys_url":"https://api.github.com/repos/GSmes/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GSmes/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GSmes/the_pivot/teams","hooks_url":"https://api.github.com/repos/GSmes/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/GSmes/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/GSmes/the_pivot/events","assignees_url":"https://api.github.com/repos/GSmes/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/GSmes/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/GSmes/the_pivot/tags","blobs_url":"https://api.github.com/repos/GSmes/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GSmes/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GSmes/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/GSmes/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GSmes/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/GSmes/the_pivot/languages","stargazers_url":"https://api.github.com/repos/GSmes/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/GSmes/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/GSmes/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/GSmes/the_pivot/subscription","commits_url":"https://api.github.com/repos/GSmes/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/GSmes/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/GSmes/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/GSmes/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/GSmes/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/GSmes/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GSmes/the_pivot/merges","archive_url":"https://api.github.com/repos/GSmes/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GSmes/the_pivot/downloads","issues_url":"https://api.github.com/repos/GSmes/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/GSmes/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/GSmes/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/GSmes/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GSmes/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/GSmes/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/GSmes/the_pivot/deployments","created_at":"2016-08-15T19:26:28Z","updated_at":"2016-08-15T19:26:30Z","pushed_at":"2016-08-22T00:35:19Z","git_url":"git://github.com/GSmes/the_pivot.git","ssh_url":"git@github.com:GSmes/the_pivot.git","clone_url":"https://github.com/GSmes/the_pivot.git","svn_url":"https://github.com/GSmes/the_pivot","homepage":"https://github.com/turingschool/lesson_plans/blob/master/ruby_03-professional_rails_applications/the_pivot.md","size":2287,"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":"ryanflach:develop","ref":"develop","sha":"f9e0ab1f38c1d5551d3d4cf138fe531be8c2340e","user":{"login":"ryanflach","id":11306104,"avatar_url":"https://avatars.githubusercontent.com/u/11306104?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflach","html_url":"https://github.com/ryanflach","followers_url":"https://api.github.com/users/ryanflach/followers","following_url":"https://api.github.com/users/ryanflach/following{/other_user}","gists_url":"https://api.github.com/users/ryanflach/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflach/subscriptions","organizations_url":"https://api.github.com/users/ryanflach/orgs","repos_url":"https://api.github.com/users/ryanflach/repos","events_url":"https://api.github.com/users/ryanflach/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflach/received_events","type":"User","site_admin":false},"repo":{"id":65755296,"name":"the_pivot","full_name":"ryanflach/the_pivot","owner":{"login":"ryanflach","id":11306104,"avatar_url":"https://avatars.githubusercontent.com/u/11306104?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanflach","html_url":"https://github.com/ryanflach","followers_url":"https://api.github.com/users/ryanflach/followers","following_url":"https://api.github.com/users/ryanflach/following{/other_user}","gists_url":"https://api.github.com/users/ryanflach/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanflach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanflach/subscriptions","organizations_url":"https://api.github.com/users/ryanflach/orgs","repos_url":"https://api.github.com/users/ryanflach/repos","events_url":"https://api.github.com/users/ryanflach/events{/privacy}","received_events_url":"https://api.github.com/users/ryanflach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanflach/the_pivot","description":"Turing Mod3 week 1-2 group project","fork":false,"url":"https://api.github.com/repos/ryanflach/the_pivot","forks_url":"https://api.github.com/repos/ryanflach/the_pivot/forks","keys_url":"https://api.github.com/repos/ryanflach/the_pivot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanflach/the_pivot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanflach/the_pivot/teams","hooks_url":"https://api.github.com/repos/ryanflach/the_pivot/hooks","issue_events_url":"https://api.github.com/repos/ryanflach/the_pivot/issues/events{/number}","events_url":"https://api.github.com/repos/ryanflach/the_pivot/events","assignees_url":"https://api.github.com/repos/ryanflach/the_pivot/assignees{/user}","branches_url":"https://api.github.com/repos/ryanflach/the_pivot/branches{/branch}","tags_url":"https://api.github.com/repos/ryanflach/the_pivot/tags","blobs_url":"https://api.github.com/repos/ryanflach/the_pivot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanflach/the_pivot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanflach/the_pivot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanflach/the_pivot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanflach/the_pivot/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanflach/the_pivot/languages","stargazers_url":"https://api.github.com/repos/ryanflach/the_pivot/stargazers","contributors_url":"https://api.github.com/repos/ryanflach/the_pivot/contributors","subscribers_url":"https://api.github.com/repos/ryanflach/the_pivot/subscribers","subscription_url":"https://api.github.com/repos/ryanflach/the_pivot/subscription","commits_url":"https://api.github.com/repos/ryanflach/the_pivot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanflach/the_pivot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanflach/the_pivot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanflach/the_pivot/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryanflach/the_pivot/contents/{+path}","compare_url":"https://api.github.com/repos/ryanflach/the_pivot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanflach/the_pivot/merges","archive_url":"https://api.github.com/repos/ryanflach/the_pivot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanflach/the_pivot/downloads","issues_url":"https://api.github.com/repos/ryanflach/the_pivot/issues{/number}","pulls_url":"https://api.github.com/repos/ryanflach/the_pivot/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanflach/the_pivot/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanflach/the_pivot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanflach/the_pivot/labels{/name}","releases_url":"https://api.github.com/repos/ryanflach/the_pivot/releases{/id}","deployments_url":"https://api.github.com/repos/ryanflach/the_pivot/deployments","created_at":"2016-08-15T18:31:40Z","updated_at":"2016-08-15T18:33:05Z","pushed_at":"2016-08-22T00:39:21Z","git_url":"git://github.com/ryanflach/the_pivot.git","ssh_url":"git@github.com:ryanflach/the_pivot.git","clone_url":"https://github.com/ryanflach/the_pivot.git","svn_url":"https://github.com/ryanflach/the_pivot","homepage":"https://github.com/turingschool/lesson_plans/blob/master/ruby_03-professional_rails_applications/the_pivot.md","size":2304,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":13,"forks":2,"open_issues":13,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95"},"html":{"href":"https://github.com/ryanflach/the_pivot/pull/95"},"issue":{"href":"https://api.github.com/repos/ryanflach/the_pivot/issues/95"},"comments":{"href":"https://api.github.com/repos/ryanflach/the_pivot/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/ryanflach/the_pivot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ryanflach/the_pivot/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/ryanflach/the_pivot/statuses/b6207536fba4704099610c25d1077173e73ebaaf"}}}}
{"actor":{"display_login":"matthewrpacker"}}