{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/comments/193462641","pull_request_review_id":126440188,"id":193462641,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzQ2MjY0MQ==","diff_hunk":"@@ -5,14 +5,15 @@ def index\n     @genre = Genre.new\n   end\n \n-  def create\n-    @genre = Genre.create(params[:name])\n-    redirect_to genres_path\n-  end\n-\n   def show\n     @genre = Genre.find(params[:id])\n     @movies = @genre.movies\n     @average = @genre.average_rating_for_all_movies\n+    @high_movie = @genre.movie_with_highest_rating\n+  end\n+\n+  private\n+  def genre_params","path":"app/controllers/genres_controller.rb","position":16,"original_position":17,"commit_id":"e551949e29d0928f46321f8ffbf7d41ca78c334f","original_commit_id":"e551949e29d0928f46321f8ffbf7d41ca78c334f","user":{"login":"iandouglas","id":168030,"node_id":"MDQ6VXNlcjE2ODAzMA==","avatar_url":"https://avatars0.githubusercontent.com/u/168030?v=4","gravatar_id":"","url":"https://api.github.com/users/iandouglas","html_url":"https://github.com/iandouglas","followers_url":"https://api.github.com/users/iandouglas/followers","following_url":"https://api.github.com/users/iandouglas/following{/other_user}","gists_url":"https://api.github.com/users/iandouglas/gists{/gist_id}","starred_url":"https://api.github.com/users/iandouglas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iandouglas/subscriptions","organizations_url":"https://api.github.com/users/iandouglas/orgs","repos_url":"https://api.github.com/users/iandouglas/repos","events_url":"https://api.github.com/users/iandouglas/events{/privacy}","received_events_url":"https://api.github.com/users/iandouglas/received_events","type":"User","site_admin":false},"body":"since you weren't doing a `create` method in here, genre_params was unnecessary","created_at":"2018-06-06T15:51:45Z","updated_at":"2018-06-06T15:51:45Z","html_url":"https://github.com/turingschool-examples/movie_mania_1803/pull/21#discussion_r193462641","pull_request_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/comments/193462641"},"html":{"href":"https://github.com/turingschool-examples/movie_mania_1803/pull/21#discussion_r193462641"},"pull_request":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21","id":193059849,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMDU5ODQ5","html_url":"https://github.com/turingschool-examples/movie_mania_1803/pull/21","diff_url":"https://github.com/turingschool-examples/movie_mania_1803/pull/21.diff","patch_url":"https://github.com/turingschool-examples/movie_mania_1803/pull/21.patch","issue_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/issues/21","number":21,"state":"open","locked":false,"title":"Manoj's PR","user":{"login":"manojpanta","id":34468256,"node_id":"MDQ6VXNlcjM0NDY4MjU2","avatar_url":"https://avatars1.githubusercontent.com/u/34468256?v=4","gravatar_id":"","url":"https://api.github.com/users/manojpanta","html_url":"https://github.com/manojpanta","followers_url":"https://api.github.com/users/manojpanta/followers","following_url":"https://api.github.com/users/manojpanta/following{/other_user}","gists_url":"https://api.github.com/users/manojpanta/gists{/gist_id}","starred_url":"https://api.github.com/users/manojpanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojpanta/subscriptions","organizations_url":"https://api.github.com/users/manojpanta/orgs","repos_url":"https://api.github.com/users/manojpanta/repos","events_url":"https://api.github.com/users/manojpanta/events{/privacy}","received_events_url":"https://api.github.com/users/manojpanta/received_events","type":"User","site_admin":false},"body":"Moved create method from genres controller to admin controller.","created_at":"2018-06-06T15:48:45Z","updated_at":"2018-06-06T15:51:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"542c5930a17f0987b6d7e07b01e75fedc5af865f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21/commits","review_comments_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21/comments","review_comment_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/comments{/number}","comments_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/issues/21/comments","statuses_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/statuses/e551949e29d0928f46321f8ffbf7d41ca78c334f","head":{"label":"manojpanta:master","ref":"master","sha":"e551949e29d0928f46321f8ffbf7d41ca78c334f","user":{"login":"manojpanta","id":34468256,"node_id":"MDQ6VXNlcjM0NDY4MjU2","avatar_url":"https://avatars1.githubusercontent.com/u/34468256?v=4","gravatar_id":"","url":"https://api.github.com/users/manojpanta","html_url":"https://github.com/manojpanta","followers_url":"https://api.github.com/users/manojpanta/followers","following_url":"https://api.github.com/users/manojpanta/following{/other_user}","gists_url":"https://api.github.com/users/manojpanta/gists{/gist_id}","starred_url":"https://api.github.com/users/manojpanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojpanta/subscriptions","organizations_url":"https://api.github.com/users/manojpanta/orgs","repos_url":"https://api.github.com/users/manojpanta/repos","events_url":"https://api.github.com/users/manojpanta/events{/privacy}","received_events_url":"https://api.github.com/users/manojpanta/received_events","type":"User","site_admin":false},"repo":{"id":136194366,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxOTQzNjY=","name":"movie_mania_1803-1","full_name":"manojpanta/movie_mania_1803-1","owner":{"login":"manojpanta","id":34468256,"node_id":"MDQ6VXNlcjM0NDY4MjU2","avatar_url":"https://avatars1.githubusercontent.com/u/34468256?v=4","gravatar_id":"","url":"https://api.github.com/users/manojpanta","html_url":"https://github.com/manojpanta","followers_url":"https://api.github.com/users/manojpanta/followers","following_url":"https://api.github.com/users/manojpanta/following{/other_user}","gists_url":"https://api.github.com/users/manojpanta/gists{/gist_id}","starred_url":"https://api.github.com/users/manojpanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojpanta/subscriptions","organizations_url":"https://api.github.com/users/manojpanta/orgs","repos_url":"https://api.github.com/users/manojpanta/repos","events_url":"https://api.github.com/users/manojpanta/events{/privacy}","received_events_url":"https://api.github.com/users/manojpanta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manojpanta/movie_mania_1803-1","description":"Movie Mania!","fork":true,"url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1","forks_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/forks","keys_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/teams","hooks_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/hooks","issue_events_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/issues/events{/number}","events_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/events","assignees_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/assignees{/user}","branches_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/branches{/branch}","tags_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/tags","blobs_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/statuses/{sha}","languages_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/languages","stargazers_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/stargazers","contributors_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/contributors","subscribers_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/subscribers","subscription_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/subscription","commits_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/contents/{+path}","compare_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/merges","archive_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/downloads","issues_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/issues{/number}","pulls_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/pulls{/number}","milestones_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/milestones{/number}","notifications_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/labels{/name}","releases_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/releases{/id}","deployments_url":"https://api.github.com/repos/manojpanta/movie_mania_1803-1/deployments","created_at":"2018-06-05T15:01:14Z","updated_at":"2018-06-06T15:43:22Z","pushed_at":"2018-06-06T15:43:20Z","git_url":"git://github.com/manojpanta/movie_mania_1803-1.git","ssh_url":"git@github.com:manojpanta/movie_mania_1803-1.git","clone_url":"https://github.com/manojpanta/movie_mania_1803-1.git","svn_url":"https://github.com/manojpanta/movie_mania_1803-1","homepage":null,"size":180,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"turingschool-examples:master","ref":"master","sha":"79db6041833b00b61c910dd0aef505a901e211a1","user":{"login":"turingschool-examples","id":8518346,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MTgzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/8518346?v=4","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"repo":{"id":135799932,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU3OTk5MzI=","name":"movie_mania_1803","full_name":"turingschool-examples/movie_mania_1803","owner":{"login":"turingschool-examples","id":8518346,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1MTgzNDY=","avatar_url":"https://avatars3.githubusercontent.com/u/8518346?v=4","gravatar_id":"","url":"https://api.github.com/users/turingschool-examples","html_url":"https://github.com/turingschool-examples","followers_url":"https://api.github.com/users/turingschool-examples/followers","following_url":"https://api.github.com/users/turingschool-examples/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-examples/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-examples/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-examples/subscriptions","organizations_url":"https://api.github.com/users/turingschool-examples/orgs","repos_url":"https://api.github.com/users/turingschool-examples/repos","events_url":"https://api.github.com/users/turingschool-examples/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-examples/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/turingschool-examples/movie_mania_1803","description":"Movie Mania!","fork":false,"url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803","forks_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/forks","keys_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/teams","hooks_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/hooks","issue_events_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/events","assignees_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/tags","blobs_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/languages","stargazers_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/stargazers","contributors_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/contributors","subscribers_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/subscribers","subscription_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/subscription","commits_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/issues/comments{/number}","contents_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/merges","archive_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/downloads","issues_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/releases{/id}","deployments_url":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/deployments","created_at":"2018-06-02T08:12:40Z","updated_at":"2018-06-02T08:13:03Z","pushed_at":"2018-06-06T15:48:45Z","git_url":"git://github.com/turingschool-examples/movie_mania_1803.git","ssh_url":"git@github.com:turingschool-examples/movie_mania_1803.git","clone_url":"https://github.com/turingschool-examples/movie_mania_1803.git","svn_url":"https://github.com/turingschool-examples/movie_mania_1803","homepage":null,"size":324,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":13,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21"},"html":{"href":"https://github.com/turingschool-examples/movie_mania_1803/pull/21"},"issue":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/issues/21"},"comments":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-examples/movie_mania_1803/statuses/e551949e29d0928f46321f8ffbf7d41ca78c334f"}},"author_association":"NONE"}}
{"actor":{"display_login":"iandouglas"}}