{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_27/pulls/comments/71287696","id":71287696,"diff_hunk":"@@ -21,19 +22,34 @@ def show\n \n   def create\n     @review = Review.new review_params\n+    @review.book = Book.find_by id: params[:book_id]\n+    @review.user = current_user\n     if @review.save\n       flash[:success] = t \"flash.review_create_success\"\n       redirect_to book_path @book\n     else\n       flash[:danger] = t \"flash.review_create_fail\"\n-      redirect_to :new\n+      render :new\n     end\n   end\n \n   def update","path":"app/controllers/reviews_controller.rb","position":33,"original_position":33,"commit_id":"ef60674dcc5f5ab5ac9b0b15218bee0f9cc03d4f","original_commit_id":"ef60674dcc5f5ab5ac9b0b15218bee0f9cc03d4f","user":{"login":"thangtx88","id":18256324,"avatar_url":"https://avatars.githubusercontent.com/u/18256324?v=3","gravatar_id":"","url":"https://api.github.com/users/thangtx88","html_url":"https://github.com/thangtx88","followers_url":"https://api.github.com/users/thangtx88/followers","following_url":"https://api.github.com/users/thangtx88/following{/other_user}","gists_url":"https://api.github.com/users/thangtx88/gists{/gist_id}","starred_url":"https://api.github.com/users/thangtx88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thangtx88/subscriptions","organizations_url":"https://api.github.com/users/thangtx88/orgs","repos_url":"https://api.github.com/users/thangtx88/repos","events_url":"https://api.github.com/users/thangtx88/events{/privacy}","received_events_url":"https://api.github.com/users/thangtx88/received_events","type":"User","site_admin":false},"body":"nếu chưa login có thể update ko","created_at":"2016-07-19T07:55:25Z","updated_at":"2016-07-19T07:55:25Z","html_url":"https://github.com/framgia/brs_27/pull/32#discussion_r71287696","pull_request_url":"https://api.github.com/repos/framgia/brs_27/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/comments/71287696"},"html":{"href":"https://github.com/framgia/brs_27/pull/32#discussion_r71287696"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_27/pulls/32","id":77921661,"html_url":"https://github.com/framgia/brs_27/pull/32","diff_url":"https://github.com/framgia/brs_27/pull/32.diff","patch_url":"https://github.com/framgia/brs_27/pull/32.patch","issue_url":"https://api.github.com/repos/framgia/brs_27/issues/32","number":32,"state":"open","locked":false,"title":"delete review","user":{"login":"phannh58","id":10679574,"avatar_url":"https://avatars.githubusercontent.com/u/10679574?v=3","gravatar_id":"","url":"https://api.github.com/users/phannh58","html_url":"https://github.com/phannh58","followers_url":"https://api.github.com/users/phannh58/followers","following_url":"https://api.github.com/users/phannh58/following{/other_user}","gists_url":"https://api.github.com/users/phannh58/gists{/gist_id}","starred_url":"https://api.github.com/users/phannh58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phannh58/subscriptions","organizations_url":"https://api.github.com/users/phannh58/orgs","repos_url":"https://api.github.com/users/phannh58/repos","events_url":"https://api.github.com/users/phannh58/events{/privacy}","received_events_url":"https://api.github.com/users/phannh58/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-19T05:59:06Z","updated_at":"2016-07-19T07:55:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c49e02b0cb68ea6f865a15473622713367f68d90","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_27/pulls/32/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_27/pulls/32/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_27/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_27/issues/32/comments","statuses_url":"https://api.github.com/repos/framgia/brs_27/statuses/ef60674dcc5f5ab5ac9b0b15218bee0f9cc03d4f","head":{"label":"phannh58:delete_review","ref":"delete_review","sha":"ef60674dcc5f5ab5ac9b0b15218bee0f9cc03d4f","user":{"login":"phannh58","id":10679574,"avatar_url":"https://avatars.githubusercontent.com/u/10679574?v=3","gravatar_id":"","url":"https://api.github.com/users/phannh58","html_url":"https://github.com/phannh58","followers_url":"https://api.github.com/users/phannh58/followers","following_url":"https://api.github.com/users/phannh58/following{/other_user}","gists_url":"https://api.github.com/users/phannh58/gists{/gist_id}","starred_url":"https://api.github.com/users/phannh58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phannh58/subscriptions","organizations_url":"https://api.github.com/users/phannh58/orgs","repos_url":"https://api.github.com/users/phannh58/repos","events_url":"https://api.github.com/users/phannh58/events{/privacy}","received_events_url":"https://api.github.com/users/phannh58/received_events","type":"User","site_admin":false},"repo":{"id":62684758,"name":"brs_27","full_name":"phannh58/brs_27","owner":{"login":"phannh58","id":10679574,"avatar_url":"https://avatars.githubusercontent.com/u/10679574?v=3","gravatar_id":"","url":"https://api.github.com/users/phannh58","html_url":"https://github.com/phannh58","followers_url":"https://api.github.com/users/phannh58/followers","following_url":"https://api.github.com/users/phannh58/following{/other_user}","gists_url":"https://api.github.com/users/phannh58/gists{/gist_id}","starred_url":"https://api.github.com/users/phannh58/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phannh58/subscriptions","organizations_url":"https://api.github.com/users/phannh58/orgs","repos_url":"https://api.github.com/users/phannh58/repos","events_url":"https://api.github.com/users/phannh58/events{/privacy}","received_events_url":"https://api.github.com/users/phannh58/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phannh58/brs_27","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/phannh58/brs_27","forks_url":"https://api.github.com/repos/phannh58/brs_27/forks","keys_url":"https://api.github.com/repos/phannh58/brs_27/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phannh58/brs_27/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phannh58/brs_27/teams","hooks_url":"https://api.github.com/repos/phannh58/brs_27/hooks","issue_events_url":"https://api.github.com/repos/phannh58/brs_27/issues/events{/number}","events_url":"https://api.github.com/repos/phannh58/brs_27/events","assignees_url":"https://api.github.com/repos/phannh58/brs_27/assignees{/user}","branches_url":"https://api.github.com/repos/phannh58/brs_27/branches{/branch}","tags_url":"https://api.github.com/repos/phannh58/brs_27/tags","blobs_url":"https://api.github.com/repos/phannh58/brs_27/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phannh58/brs_27/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phannh58/brs_27/git/refs{/sha}","trees_url":"https://api.github.com/repos/phannh58/brs_27/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phannh58/brs_27/statuses/{sha}","languages_url":"https://api.github.com/repos/phannh58/brs_27/languages","stargazers_url":"https://api.github.com/repos/phannh58/brs_27/stargazers","contributors_url":"https://api.github.com/repos/phannh58/brs_27/contributors","subscribers_url":"https://api.github.com/repos/phannh58/brs_27/subscribers","subscription_url":"https://api.github.com/repos/phannh58/brs_27/subscription","commits_url":"https://api.github.com/repos/phannh58/brs_27/commits{/sha}","git_commits_url":"https://api.github.com/repos/phannh58/brs_27/git/commits{/sha}","comments_url":"https://api.github.com/repos/phannh58/brs_27/comments{/number}","issue_comment_url":"https://api.github.com/repos/phannh58/brs_27/issues/comments{/number}","contents_url":"https://api.github.com/repos/phannh58/brs_27/contents/{+path}","compare_url":"https://api.github.com/repos/phannh58/brs_27/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phannh58/brs_27/merges","archive_url":"https://api.github.com/repos/phannh58/brs_27/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phannh58/brs_27/downloads","issues_url":"https://api.github.com/repos/phannh58/brs_27/issues{/number}","pulls_url":"https://api.github.com/repos/phannh58/brs_27/pulls{/number}","milestones_url":"https://api.github.com/repos/phannh58/brs_27/milestones{/number}","notifications_url":"https://api.github.com/repos/phannh58/brs_27/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phannh58/brs_27/labels{/name}","releases_url":"https://api.github.com/repos/phannh58/brs_27/releases{/id}","deployments_url":"https://api.github.com/repos/phannh58/brs_27/deployments","created_at":"2016-07-06T02:28:19Z","updated_at":"2016-07-05T01:28:01Z","pushed_at":"2016-07-19T07:47:30Z","git_url":"git://github.com/phannh58/brs_27.git","ssh_url":"git@github.com:phannh58/brs_27.git","clone_url":"https://github.com/phannh58/brs_27.git","svn_url":"https://github.com/phannh58/brs_27","homepage":null,"size":150,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"ea7714195128604430dc2d6dd95928cf1d67c840","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":62596840,"name":"brs_27","full_name":"framgia/brs_27","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/brs_27","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_27","forks_url":"https://api.github.com/repos/framgia/brs_27/forks","keys_url":"https://api.github.com/repos/framgia/brs_27/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_27/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_27/teams","hooks_url":"https://api.github.com/repos/framgia/brs_27/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_27/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_27/events","assignees_url":"https://api.github.com/repos/framgia/brs_27/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_27/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_27/tags","blobs_url":"https://api.github.com/repos/framgia/brs_27/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_27/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_27/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_27/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_27/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_27/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_27/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_27/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_27/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_27/subscription","commits_url":"https://api.github.com/repos/framgia/brs_27/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_27/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_27/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_27/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_27/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_27/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_27/merges","archive_url":"https://api.github.com/repos/framgia/brs_27/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_27/downloads","issues_url":"https://api.github.com/repos/framgia/brs_27/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_27/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_27/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_27/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_27/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_27/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_27/deployments","created_at":"2016-07-05T01:28:01Z","updated_at":"2016-07-05T01:28:01Z","pushed_at":"2016-07-19T07:48:52Z","git_url":"git://github.com/framgia/brs_27.git","ssh_url":"git@github.com:framgia/brs_27.git","clone_url":"https://github.com/framgia/brs_27.git","svn_url":"https://github.com/framgia/brs_27","homepage":null,"size":164,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/32"},"html":{"href":"https://github.com/framgia/brs_27/pull/32"},"issue":{"href":"https://api.github.com/repos/framgia/brs_27/issues/32"},"comments":{"href":"https://api.github.com/repos/framgia/brs_27/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_27/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_27/statuses/ef60674dcc5f5ab5ac9b0b15218bee0f9cc03d4f"}}}}
{"actor":{"display_login":"thangtx88"}}