{"action":"created","comment":{"url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments/27595114","id":27595114,"diff_hunk":"@@ -0,0 +1,48 @@\n+class ReviewsController < ApplicationController\n+  def create\n+    @movie = Movie.find(params[:movie_id])\n+    @review = Review.new(review_params)\n+    @review.movie = @movie\n+    @review.user = current_user\n+\n+    if @review.save\n+      flash[:notice] = 'Review Successfully Created'\n+      redirect_to movie_path(@movie)\n+    else\n+      @review.errors.full_messages.each { |message| flash[:errors] = message }\n+      # find the way to use this thing instead of the render\n+      # redirect movie_path(@movie) find parameters on the routes\n+      render 'movies/show'\n+    end\n+  end\n+\n+  def update\n+    @review = Review.find(params[:id])\n+    @movie = Movie.find(params[:movie_id])\n+    @review.user = current_user","path":"app/controllers/reviews_controller.rb","position":22,"original_position":22,"commit_id":"388480f24f9de23f3d476de24e40b6fa9c70dc8f","original_commit_id":"388480f24f9de23f3d476de24e40b6fa9c70dc8f","user":{"login":"cmkoller","id":8670086,"avatar_url":"https://avatars.githubusercontent.com/u/8670086?v=3","gravatar_id":"","url":"https://api.github.com/users/cmkoller","html_url":"https://github.com/cmkoller","followers_url":"https://api.github.com/users/cmkoller/followers","following_url":"https://api.github.com/users/cmkoller/following{/other_user}","gists_url":"https://api.github.com/users/cmkoller/gists{/gist_id}","starred_url":"https://api.github.com/users/cmkoller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmkoller/subscriptions","organizations_url":"https://api.github.com/users/cmkoller/orgs","repos_url":"https://api.github.com/users/cmkoller/repos","events_url":"https://api.github.com/users/cmkoller/events{/privacy}","received_events_url":"https://api.github.com/users/cmkoller/received_events","type":"User","site_admin":false},"body":"Do you need to do this assignment? Shouldn't `@review.user` already be set from when you first created it? You shouldn't need to re-do that assignment now.","created_at":"2015-04-01T18:12:45Z","updated_at":"2015-04-01T18:12:45Z","html_url":"https://github.com/DuncanRose/MovieHub/pull/4#discussion_r27595114","pull_request_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments/27595114"},"html":{"href":"https://github.com/DuncanRose/MovieHub/pull/4#discussion_r27595114"},"pull_request":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4","id":32443611,"html_url":"https://github.com/DuncanRose/MovieHub/pull/4","diff_url":"https://github.com/DuncanRose/MovieHub/pull/4.diff","patch_url":"https://github.com/DuncanRose/MovieHub/pull/4.patch","issue_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/4","number":4,"state":"open","locked":false,"title":"[RTR] JE review test suits ready","user":{"login":"cocolote","id":4121133,"avatar_url":"https://avatars.githubusercontent.com/u/4121133?v=3","gravatar_id":"","url":"https://api.github.com/users/cocolote","html_url":"https://github.com/cocolote","followers_url":"https://api.github.com/users/cocolote/followers","following_url":"https://api.github.com/users/cocolote/following{/other_user}","gists_url":"https://api.github.com/users/cocolote/gists{/gist_id}","starred_url":"https://api.github.com/users/cocolote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cocolote/subscriptions","organizations_url":"https://api.github.com/users/cocolote/orgs","repos_url":"https://api.github.com/users/cocolote/repos","events_url":"https://api.github.com/users/cocolote/events{/privacy}","received_events_url":"https://api.github.com/users/cocolote/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-01T17:58:09Z","updated_at":"2015-04-01T18:12:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc53d3471eba85c7fed2a7fdd142dbeb7f7fcbae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4/commits","review_comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4/comments","review_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/4/comments","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/388480f24f9de23f3d476de24e40b6fa9c70dc8f","head":{"label":"DuncanRose:JE-reviews-tdd","ref":"JE-reviews-tdd","sha":"388480f24f9de23f3d476de24e40b6fa9c70dc8f","user":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"repo":{"id":33132921,"name":"MovieHub","full_name":"DuncanRose/MovieHub","owner":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DuncanRose/MovieHub","description":"Group Project at Launch Academy","fork":false,"url":"https://api.github.com/repos/DuncanRose/MovieHub","forks_url":"https://api.github.com/repos/DuncanRose/MovieHub/forks","keys_url":"https://api.github.com/repos/DuncanRose/MovieHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DuncanRose/MovieHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DuncanRose/MovieHub/teams","hooks_url":"https://api.github.com/repos/DuncanRose/MovieHub/hooks","issue_events_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/events{/number}","events_url":"https://api.github.com/repos/DuncanRose/MovieHub/events","assignees_url":"https://api.github.com/repos/DuncanRose/MovieHub/assignees{/user}","branches_url":"https://api.github.com/repos/DuncanRose/MovieHub/branches{/branch}","tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/tags","blobs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/{sha}","languages_url":"https://api.github.com/repos/DuncanRose/MovieHub/languages","stargazers_url":"https://api.github.com/repos/DuncanRose/MovieHub/stargazers","contributors_url":"https://api.github.com/repos/DuncanRose/MovieHub/contributors","subscribers_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscribers","subscription_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscription","commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/DuncanRose/MovieHub/contents/{+path}","compare_url":"https://api.github.com/repos/DuncanRose/MovieHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DuncanRose/MovieHub/merges","archive_url":"https://api.github.com/repos/DuncanRose/MovieHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DuncanRose/MovieHub/downloads","issues_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues{/number}","pulls_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls{/number}","milestones_url":"https://api.github.com/repos/DuncanRose/MovieHub/milestones{/number}","notifications_url":"https://api.github.com/repos/DuncanRose/MovieHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DuncanRose/MovieHub/labels{/name}","releases_url":"https://api.github.com/repos/DuncanRose/MovieHub/releases{/id}","created_at":"2015-03-30T15:56:33Z","updated_at":"2015-03-31T19:20:48Z","pushed_at":"2015-04-01T17:58:10Z","git_url":"git://github.com/DuncanRose/MovieHub.git","ssh_url":"git@github.com:DuncanRose/MovieHub.git","clone_url":"https://github.com/DuncanRose/MovieHub.git","svn_url":"https://github.com/DuncanRose/MovieHub","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DuncanRose:master","ref":"master","sha":"b3d24f8a2bb7bfe87d6c08d42e3e5e5e02b8ce84","user":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"repo":{"id":33132921,"name":"MovieHub","full_name":"DuncanRose/MovieHub","owner":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DuncanRose/MovieHub","description":"Group Project at Launch Academy","fork":false,"url":"https://api.github.com/repos/DuncanRose/MovieHub","forks_url":"https://api.github.com/repos/DuncanRose/MovieHub/forks","keys_url":"https://api.github.com/repos/DuncanRose/MovieHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DuncanRose/MovieHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DuncanRose/MovieHub/teams","hooks_url":"https://api.github.com/repos/DuncanRose/MovieHub/hooks","issue_events_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/events{/number}","events_url":"https://api.github.com/repos/DuncanRose/MovieHub/events","assignees_url":"https://api.github.com/repos/DuncanRose/MovieHub/assignees{/user}","branches_url":"https://api.github.com/repos/DuncanRose/MovieHub/branches{/branch}","tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/tags","blobs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/{sha}","languages_url":"https://api.github.com/repos/DuncanRose/MovieHub/languages","stargazers_url":"https://api.github.com/repos/DuncanRose/MovieHub/stargazers","contributors_url":"https://api.github.com/repos/DuncanRose/MovieHub/contributors","subscribers_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscribers","subscription_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscription","commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/DuncanRose/MovieHub/contents/{+path}","compare_url":"https://api.github.com/repos/DuncanRose/MovieHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DuncanRose/MovieHub/merges","archive_url":"https://api.github.com/repos/DuncanRose/MovieHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DuncanRose/MovieHub/downloads","issues_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues{/number}","pulls_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls{/number}","milestones_url":"https://api.github.com/repos/DuncanRose/MovieHub/milestones{/number}","notifications_url":"https://api.github.com/repos/DuncanRose/MovieHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DuncanRose/MovieHub/labels{/name}","releases_url":"https://api.github.com/repos/DuncanRose/MovieHub/releases{/id}","created_at":"2015-03-30T15:56:33Z","updated_at":"2015-03-31T19:20:48Z","pushed_at":"2015-04-01T17:58:10Z","git_url":"git://github.com/DuncanRose/MovieHub.git","ssh_url":"git@github.com:DuncanRose/MovieHub.git","clone_url":"https://github.com/DuncanRose/MovieHub.git","svn_url":"https://github.com/DuncanRose/MovieHub","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4"},"html":{"href":"https://github.com/DuncanRose/MovieHub/pull/4"},"issue":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/issues/4"},"comments":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/388480f24f9de23f3d476de24e40b6fa9c70dc8f"}}}}