{"action":"created","comment":{"url":"https://api.github.com/repos/JakeKaad/myflix/pulls/comments/23589429","id":23589429,"diff_hunk":"@@ -0,0 +1,19 @@\n+class ReviewsController < ApplicationController\n+\n+  before_action :require_user, only: [:create]\n+\n+  def create\n+    @video = Video.find(params[:video_id])\n+    @review = @video.reviews.new(params.require(:review).permit(:rating, :content).merge!(user: current_user))\n+\n+    if @review.save\n+      flash[:notice] = \"Review submitted\"","path":"app/controllers/reviews_controller.rb","position":10,"original_position":10,"commit_id":"2893581851a47fc3973e7640f8b3965f91f317f2","original_commit_id":"2893581851a47fc3973e7640f8b3965f91f317f2","user":{"login":"brandoncc","id":543973,"avatar_url":"https://avatars.githubusercontent.com/u/543973?v=3","gravatar_id":"","url":"https://api.github.com/users/brandoncc","html_url":"https://github.com/brandoncc","followers_url":"https://api.github.com/users/brandoncc/followers","following_url":"https://api.github.com/users/brandoncc/following{/other_user}","gists_url":"https://api.github.com/users/brandoncc/gists{/gist_id}","starred_url":"https://api.github.com/users/brandoncc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandoncc/subscriptions","organizations_url":"https://api.github.com/users/brandoncc/orgs","repos_url":"https://api.github.com/users/brandoncc/repos","events_url":"https://api.github.com/users/brandoncc/events{/privacy}","received_events_url":"https://api.github.com/users/brandoncc/received_events","type":"User","site_admin":false},"body":"Be aware that the Bootstrap classes have changed to success and danger. The flashes partial handles this in this app, but if you are manually creating an alert you will need to use the new classes.","created_at":"2015-01-27T06:22:58Z","updated_at":"2015-01-27T06:22:58Z","html_url":"https://github.com/JakeKaad/myflix/pull/3#discussion_r23589429","pull_request_url":"https://api.github.com/repos/JakeKaad/myflix/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/JakeKaad/myflix/pulls/comments/23589429"},"html":{"href":"https://github.com/JakeKaad/myflix/pull/3#discussion_r23589429"},"pull_request":{"href":"https://api.github.com/repos/JakeKaad/myflix/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/JakeKaad/myflix/pulls/3","id":28086158,"html_url":"https://github.com/JakeKaad/myflix/pull/3","diff_url":"https://github.com/JakeKaad/myflix/pull/3.diff","patch_url":"https://github.com/JakeKaad/myflix/pull/3.patch","issue_url":"https://api.github.com/repos/JakeKaad/myflix/issues/3","number":3,"state":"open","locked":false,"title":"Module three","user":{"login":"JakeKaad","id":9522786,"avatar_url":"https://avatars.githubusercontent.com/u/9522786?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeKaad","html_url":"https://github.com/JakeKaad","followers_url":"https://api.github.com/users/JakeKaad/followers","following_url":"https://api.github.com/users/JakeKaad/following{/other_user}","gists_url":"https://api.github.com/users/JakeKaad/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeKaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeKaad/subscriptions","organizations_url":"https://api.github.com/users/JakeKaad/orgs","repos_url":"https://api.github.com/users/JakeKaad/repos","events_url":"https://api.github.com/users/JakeKaad/events{/privacy}","received_events_url":"https://api.github.com/users/JakeKaad/received_events","type":"User","site_admin":false},"body":"Module three up for review.  ","created_at":"2015-01-27T06:12:01Z","updated_at":"2015-01-27T06:22:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JakeKaad/myflix/pulls/3/commits","review_comments_url":"https://api.github.com/repos/JakeKaad/myflix/pulls/3/comments","review_comment_url":"https://api.github.com/repos/JakeKaad/myflix/pulls/comments/{number}","comments_url":"https://api.github.com/repos/JakeKaad/myflix/issues/3/comments","statuses_url":"https://api.github.com/repos/JakeKaad/myflix/statuses/2893581851a47fc3973e7640f8b3965f91f317f2","head":{"label":"JakeKaad:module_three","ref":"module_three","sha":"2893581851a47fc3973e7640f8b3965f91f317f2","user":{"login":"JakeKaad","id":9522786,"avatar_url":"https://avatars.githubusercontent.com/u/9522786?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeKaad","html_url":"https://github.com/JakeKaad","followers_url":"https://api.github.com/users/JakeKaad/followers","following_url":"https://api.github.com/users/JakeKaad/following{/other_user}","gists_url":"https://api.github.com/users/JakeKaad/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeKaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeKaad/subscriptions","organizations_url":"https://api.github.com/users/JakeKaad/orgs","repos_url":"https://api.github.com/users/JakeKaad/repos","events_url":"https://api.github.com/users/JakeKaad/events{/privacy}","received_events_url":"https://api.github.com/users/JakeKaad/received_events","type":"User","site_admin":false},"repo":{"id":29577678,"name":"myflix","full_name":"JakeKaad/myflix","owner":{"login":"JakeKaad","id":9522786,"avatar_url":"https://avatars.githubusercontent.com/u/9522786?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeKaad","html_url":"https://github.com/JakeKaad","followers_url":"https://api.github.com/users/JakeKaad/followers","following_url":"https://api.github.com/users/JakeKaad/following{/other_user}","gists_url":"https://api.github.com/users/JakeKaad/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeKaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeKaad/subscriptions","organizations_url":"https://api.github.com/users/JakeKaad/orgs","repos_url":"https://api.github.com/users/JakeKaad/repos","events_url":"https://api.github.com/users/JakeKaad/events{/privacy}","received_events_url":"https://api.github.com/users/JakeKaad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JakeKaad/myflix","description":"tealeaf course 3 project","fork":false,"url":"https://api.github.com/repos/JakeKaad/myflix","forks_url":"https://api.github.com/repos/JakeKaad/myflix/forks","keys_url":"https://api.github.com/repos/JakeKaad/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JakeKaad/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JakeKaad/myflix/teams","hooks_url":"https://api.github.com/repos/JakeKaad/myflix/hooks","issue_events_url":"https://api.github.com/repos/JakeKaad/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/JakeKaad/myflix/events","assignees_url":"https://api.github.com/repos/JakeKaad/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/JakeKaad/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/JakeKaad/myflix/tags","blobs_url":"https://api.github.com/repos/JakeKaad/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JakeKaad/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JakeKaad/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/JakeKaad/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JakeKaad/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/JakeKaad/myflix/languages","stargazers_url":"https://api.github.com/repos/JakeKaad/myflix/stargazers","contributors_url":"https://api.github.com/repos/JakeKaad/myflix/contributors","subscribers_url":"https://api.github.com/repos/JakeKaad/myflix/subscribers","subscription_url":"https://api.github.com/repos/JakeKaad/myflix/subscription","commits_url":"https://api.github.com/repos/JakeKaad/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/JakeKaad/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/JakeKaad/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/JakeKaad/myflix/issues/comments/{number}","contents_url":"https://api.github.com/repos/JakeKaad/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/JakeKaad/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JakeKaad/myflix/merges","archive_url":"https://api.github.com/repos/JakeKaad/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JakeKaad/myflix/downloads","issues_url":"https://api.github.com/repos/JakeKaad/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/JakeKaad/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/JakeKaad/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/JakeKaad/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JakeKaad/myflix/labels{/name}","releases_url":"https://api.github.com/repos/JakeKaad/myflix/releases{/id}","created_at":"2015-01-21T07:36:19Z","updated_at":"2015-01-25T16:12:50Z","pushed_at":"2015-01-27T06:11:19Z","git_url":"git://github.com/JakeKaad/myflix.git","ssh_url":"git@github.com:JakeKaad/myflix.git","clone_url":"https://github.com/JakeKaad/myflix.git","svn_url":"https://github.com/JakeKaad/myflix","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"JakeKaad:master","ref":"master","sha":"04c2d09cbaf7b824c3cafb2426edca5a77d712e3","user":{"login":"JakeKaad","id":9522786,"avatar_url":"https://avatars.githubusercontent.com/u/9522786?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeKaad","html_url":"https://github.com/JakeKaad","followers_url":"https://api.github.com/users/JakeKaad/followers","following_url":"https://api.github.com/users/JakeKaad/following{/other_user}","gists_url":"https://api.github.com/users/JakeKaad/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeKaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeKaad/subscriptions","organizations_url":"https://api.github.com/users/JakeKaad/orgs","repos_url":"https://api.github.com/users/JakeKaad/repos","events_url":"https://api.github.com/users/JakeKaad/events{/privacy}","received_events_url":"https://api.github.com/users/JakeKaad/received_events","type":"User","site_admin":false},"repo":{"id":29577678,"name":"myflix","full_name":"JakeKaad/myflix","owner":{"login":"JakeKaad","id":9522786,"avatar_url":"https://avatars.githubusercontent.com/u/9522786?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeKaad","html_url":"https://github.com/JakeKaad","followers_url":"https://api.github.com/users/JakeKaad/followers","following_url":"https://api.github.com/users/JakeKaad/following{/other_user}","gists_url":"https://api.github.com/users/JakeKaad/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeKaad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeKaad/subscriptions","organizations_url":"https://api.github.com/users/JakeKaad/orgs","repos_url":"https://api.github.com/users/JakeKaad/repos","events_url":"https://api.github.com/users/JakeKaad/events{/privacy}","received_events_url":"https://api.github.com/users/JakeKaad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JakeKaad/myflix","description":"tealeaf course 3 project","fork":false,"url":"https://api.github.com/repos/JakeKaad/myflix","forks_url":"https://api.github.com/repos/JakeKaad/myflix/forks","keys_url":"https://api.github.com/repos/JakeKaad/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JakeKaad/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JakeKaad/myflix/teams","hooks_url":"https://api.github.com/repos/JakeKaad/myflix/hooks","issue_events_url":"https://api.github.com/repos/JakeKaad/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/JakeKaad/myflix/events","assignees_url":"https://api.github.com/repos/JakeKaad/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/JakeKaad/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/JakeKaad/myflix/tags","blobs_url":"https://api.github.com/repos/JakeKaad/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JakeKaad/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JakeKaad/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/JakeKaad/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JakeKaad/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/JakeKaad/myflix/languages","stargazers_url":"https://api.github.com/repos/JakeKaad/myflix/stargazers","contributors_url":"https://api.github.com/repos/JakeKaad/myflix/contributors","subscribers_url":"https://api.github.com/repos/JakeKaad/myflix/subscribers","subscription_url":"https://api.github.com/repos/JakeKaad/myflix/subscription","commits_url":"https://api.github.com/repos/JakeKaad/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/JakeKaad/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/JakeKaad/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/JakeKaad/myflix/issues/comments/{number}","contents_url":"https://api.github.com/repos/JakeKaad/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/JakeKaad/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JakeKaad/myflix/merges","archive_url":"https://api.github.com/repos/JakeKaad/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JakeKaad/myflix/downloads","issues_url":"https://api.github.com/repos/JakeKaad/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/JakeKaad/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/JakeKaad/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/JakeKaad/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JakeKaad/myflix/labels{/name}","releases_url":"https://api.github.com/repos/JakeKaad/myflix/releases{/id}","created_at":"2015-01-21T07:36:19Z","updated_at":"2015-01-25T16:12:50Z","pushed_at":"2015-01-27T06:11:19Z","git_url":"git://github.com/JakeKaad/myflix.git","ssh_url":"git@github.com:JakeKaad/myflix.git","clone_url":"https://github.com/JakeKaad/myflix.git","svn_url":"https://github.com/JakeKaad/myflix","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/JakeKaad/myflix/pulls/3"},"html":{"href":"https://github.com/JakeKaad/myflix/pull/3"},"issue":{"href":"https://api.github.com/repos/JakeKaad/myflix/issues/3"},"comments":{"href":"https://api.github.com/repos/JakeKaad/myflix/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/JakeKaad/myflix/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/JakeKaad/myflix/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/JakeKaad/myflix/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/JakeKaad/myflix/statuses/2893581851a47fc3973e7640f8b3965f91f317f2"}}}}