{"action":"created","comment":{"url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/comments/57539205","id":57539205,"diff_hunk":"@@ -0,0 +1,21 @@\n+class PlaysController < ApplicationController\n+\n+def new\n+  @plays = Play.all\n+  @theaters = Theater.all\n+  @theater = Theater.new\n+end\n+\n+def create_play\n+  if params[:theater][:id] != \"\"\n+    @theater = Theater.find_by_id(params[:theater][:id])\n+  else\n+    @theater = Theater.new(name: params[:theater][:name])\n+    @theater.save\n+  end\n+  @theater.plays.create(title: params[:theater][:play][:title])\n+  redirect_to \"/viewings/new\"\n+end\n+\n+","path":"app/controllers/plays_controller.rb","position":20,"original_position":20,"commit_id":"60e638864440b4fe6a4012dc099da372bfe22d35","original_commit_id":"60e638864440b4fe6a4012dc099da372bfe22d35","user":{"login":"sumeetjain","id":29388,"avatar_url":"https://avatars.githubusercontent.com/u/29388?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetjain","html_url":"https://github.com/sumeetjain","followers_url":"https://api.github.com/users/sumeetjain/followers","following_url":"https://api.github.com/users/sumeetjain/following{/other_user}","gists_url":"https://api.github.com/users/sumeetjain/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetjain/subscriptions","organizations_url":"https://api.github.com/users/sumeetjain/orgs","repos_url":"https://api.github.com/users/sumeetjain/repos","events_url":"https://api.github.com/users/sumeetjain/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetjain/received_events","type":"User","site_admin":false},"body":"Extra blank line detected.","created_at":"2016-03-28T01:51:45Z","updated_at":"2016-03-28T01:51:45Z","html_url":"https://github.com/omahacodeschool/tag-awards/pull/95#discussion_r57539205","pull_request_url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/comments/57539205"},"html":{"href":"https://github.com/omahacodeschool/tag-awards/pull/95#discussion_r57539205"},"pull_request":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95","id":64245742,"html_url":"https://github.com/omahacodeschool/tag-awards/pull/95","diff_url":"https://github.com/omahacodeschool/tag-awards/pull/95.diff","patch_url":"https://github.com/omahacodeschool/tag-awards/pull/95.patch","issue_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/95","number":95,"state":"open","locked":false,"title":"90 branch 2 users add theaters plays","user":{"login":"amymariewall","id":14079223,"avatar_url":"https://avatars.githubusercontent.com/u/14079223?v=3","gravatar_id":"","url":"https://api.github.com/users/amymariewall","html_url":"https://github.com/amymariewall","followers_url":"https://api.github.com/users/amymariewall/followers","following_url":"https://api.github.com/users/amymariewall/following{/other_user}","gists_url":"https://api.github.com/users/amymariewall/gists{/gist_id}","starred_url":"https://api.github.com/users/amymariewall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amymariewall/subscriptions","organizations_url":"https://api.github.com/users/amymariewall/orgs","repos_url":"https://api.github.com/users/amymariewall/repos","events_url":"https://api.github.com/users/amymariewall/events{/privacy}","received_events_url":"https://api.github.com/users/amymariewall/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-26T18:50:05Z","updated_at":"2016-03-28T01:51:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98d35fc5e7fa67d383b64ac83bd7e9ef976f7df9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95/commits","review_comments_url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95/comments","review_comment_url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/95/comments","statuses_url":"https://api.github.com/repos/omahacodeschool/tag-awards/statuses/60e638864440b4fe6a4012dc099da372bfe22d35","head":{"label":"omahacodeschool:90-branch-2-users-add-theaters-plays","ref":"90-branch-2-users-add-theaters-plays","sha":"60e638864440b4fe6a4012dc099da372bfe22d35","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":54342788,"name":"tag-awards","full_name":"omahacodeschool/tag-awards","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/tag-awards","description":null,"fork":false,"url":"https://api.github.com/repos/omahacodeschool/tag-awards","forks_url":"https://api.github.com/repos/omahacodeschool/tag-awards/forks","keys_url":"https://api.github.com/repos/omahacodeschool/tag-awards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/tag-awards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/tag-awards/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/tag-awards/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/tag-awards/events","assignees_url":"https://api.github.com/repos/omahacodeschool/tag-awards/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/tag-awards/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/tag-awards/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/tag-awards/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/tag-awards/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/tag-awards/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/tag-awards/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/tag-awards/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/tag-awards/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/tag-awards/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/tag-awards/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/tag-awards/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/tag-awards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/tag-awards/merges","archive_url":"https://api.github.com/repos/omahacodeschool/tag-awards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/tag-awards/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/tag-awards/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/tag-awards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/tag-awards/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/tag-awards/releases{/id}","deployments_url":"https://api.github.com/repos/omahacodeschool/tag-awards/deployments","created_at":"2016-03-20T21:59:59Z","updated_at":"2016-03-25T16:27:12Z","pushed_at":"2016-03-28T01:47:50Z","git_url":"git://github.com/omahacodeschool/tag-awards.git","ssh_url":"git@github.com:omahacodeschool/tag-awards.git","clone_url":"https://github.com/omahacodeschool/tag-awards.git","svn_url":"https://github.com/omahacodeschool/tag-awards","homepage":null,"size":170,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":74,"forks":0,"open_issues":74,"watchers":1,"default_branch":"master"}},"base":{"label":"omahacodeschool:master","ref":"master","sha":"92f9dd8eefbdca215bb5cfa3a8d359f70c0a33a6","user":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"repo":{"id":54342788,"name":"tag-awards","full_name":"omahacodeschool/tag-awards","owner":{"login":"omahacodeschool","id":6311183,"avatar_url":"https://avatars.githubusercontent.com/u/6311183?v=3","gravatar_id":"","url":"https://api.github.com/users/omahacodeschool","html_url":"https://github.com/omahacodeschool","followers_url":"https://api.github.com/users/omahacodeschool/followers","following_url":"https://api.github.com/users/omahacodeschool/following{/other_user}","gists_url":"https://api.github.com/users/omahacodeschool/gists{/gist_id}","starred_url":"https://api.github.com/users/omahacodeschool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omahacodeschool/subscriptions","organizations_url":"https://api.github.com/users/omahacodeschool/orgs","repos_url":"https://api.github.com/users/omahacodeschool/repos","events_url":"https://api.github.com/users/omahacodeschool/events{/privacy}","received_events_url":"https://api.github.com/users/omahacodeschool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omahacodeschool/tag-awards","description":null,"fork":false,"url":"https://api.github.com/repos/omahacodeschool/tag-awards","forks_url":"https://api.github.com/repos/omahacodeschool/tag-awards/forks","keys_url":"https://api.github.com/repos/omahacodeschool/tag-awards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omahacodeschool/tag-awards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omahacodeschool/tag-awards/teams","hooks_url":"https://api.github.com/repos/omahacodeschool/tag-awards/hooks","issue_events_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/events{/number}","events_url":"https://api.github.com/repos/omahacodeschool/tag-awards/events","assignees_url":"https://api.github.com/repos/omahacodeschool/tag-awards/assignees{/user}","branches_url":"https://api.github.com/repos/omahacodeschool/tag-awards/branches{/branch}","tags_url":"https://api.github.com/repos/omahacodeschool/tag-awards/tags","blobs_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/refs{/sha}","trees_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omahacodeschool/tag-awards/statuses/{sha}","languages_url":"https://api.github.com/repos/omahacodeschool/tag-awards/languages","stargazers_url":"https://api.github.com/repos/omahacodeschool/tag-awards/stargazers","contributors_url":"https://api.github.com/repos/omahacodeschool/tag-awards/contributors","subscribers_url":"https://api.github.com/repos/omahacodeschool/tag-awards/subscribers","subscription_url":"https://api.github.com/repos/omahacodeschool/tag-awards/subscription","commits_url":"https://api.github.com/repos/omahacodeschool/tag-awards/commits{/sha}","git_commits_url":"https://api.github.com/repos/omahacodeschool/tag-awards/git/commits{/sha}","comments_url":"https://api.github.com/repos/omahacodeschool/tag-awards/comments{/number}","issue_comment_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/comments{/number}","contents_url":"https://api.github.com/repos/omahacodeschool/tag-awards/contents/{+path}","compare_url":"https://api.github.com/repos/omahacodeschool/tag-awards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omahacodeschool/tag-awards/merges","archive_url":"https://api.github.com/repos/omahacodeschool/tag-awards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omahacodeschool/tag-awards/downloads","issues_url":"https://api.github.com/repos/omahacodeschool/tag-awards/issues{/number}","pulls_url":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls{/number}","milestones_url":"https://api.github.com/repos/omahacodeschool/tag-awards/milestones{/number}","notifications_url":"https://api.github.com/repos/omahacodeschool/tag-awards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omahacodeschool/tag-awards/labels{/name}","releases_url":"https://api.github.com/repos/omahacodeschool/tag-awards/releases{/id}","deployments_url":"https://api.github.com/repos/omahacodeschool/tag-awards/deployments","created_at":"2016-03-20T21:59:59Z","updated_at":"2016-03-25T16:27:12Z","pushed_at":"2016-03-28T01:47:50Z","git_url":"git://github.com/omahacodeschool/tag-awards.git","ssh_url":"git@github.com:omahacodeschool/tag-awards.git","clone_url":"https://github.com/omahacodeschool/tag-awards.git","svn_url":"https://github.com/omahacodeschool/tag-awards","homepage":null,"size":170,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":74,"forks":0,"open_issues":74,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95"},"html":{"href":"https://github.com/omahacodeschool/tag-awards/pull/95"},"issue":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/95"},"comments":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/omahacodeschool/tag-awards/statuses/60e638864440b4fe6a4012dc099da372bfe22d35"}}}}