{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_37/pulls/comments/82575222","pull_request_review_id":3472691,"id":82575222,"diff_hunk":"@@ -0,0 +1,40 @@\n+<% if logged_in? %>\n+    <div class=\"row\" id=\"reviews-row\">\n+      <div class=\"col-md-6\">\n+        <div class=\"well well-sm\">\n+          <div class=\"text-right\">\n+            <p class=\"btn btn-success btn-green\" id=\"open-review-box\">\n+              <%= t \"write_review\" %>\n+            </p>\n+          </div>\n+          <div class=\"row\" id=\"post-review-box\">\n+            <div class=\"col-md-12\">\n+              <%= form_for [@book, @build_review] do |f| %>","path":"app/views/reviews/_form.html.erb","position":12,"original_position":12,"commit_id":"a78e21f04500315e13ddd752d1a5442805c6fe9b","original_commit_id":"f1a30f01b9fda6f39a088dd30f0f92a2345246f5","user":{"login":"Huyliver6793","id":18795322,"avatar_url":"https://avatars.githubusercontent.com/u/18795322?v=3","gravatar_id":"","url":"https://api.github.com/users/Huyliver6793","html_url":"https://github.com/Huyliver6793","followers_url":"https://api.github.com/users/Huyliver6793/followers","following_url":"https://api.github.com/users/Huyliver6793/following{/other_user}","gists_url":"https://api.github.com/users/Huyliver6793/gists{/gist_id}","starred_url":"https://api.github.com/users/Huyliver6793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huyliver6793/subscriptions","organizations_url":"https://api.github.com/users/Huyliver6793/orgs","repos_url":"https://api.github.com/users/Huyliver6793/repos","events_url":"https://api.github.com/users/Huyliver6793/events{/privacy}","received_events_url":"https://api.github.com/users/Huyliver6793/received_events","type":"User","site_admin":false},"body":"cái này e đợt cũng qua hỏi rồi nhưng thử mọi cách ko sử dụng được render a à :( vì cái form show book vs write review nó nằm cùng 1 form. giờ mình viết validate trong model Review, thì lúc tạo Review thì nó ko lấy được cái giá trị mình validate trong model Review. nên e sử dụng flash, và ở ngoài form nhập, thì e sẽ hiển thị (cái này ko được bỏ trống, cái kia phải nhập bao nhiêu kí tự.v.v.v)","created_at":"2016-10-10T10:05:48Z","updated_at":"2016-10-10T10:05:48Z","html_url":"https://github.com/framgia/brs_37/pull/21#discussion_r82575222","pull_request_url":"https://api.github.com/repos/framgia/brs_37/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_37/pulls/comments/82575222"},"html":{"href":"https://github.com/framgia/brs_37/pull/21#discussion_r82575222"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_37/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_37/pulls/21","id":88377757,"html_url":"https://github.com/framgia/brs_37/pull/21","diff_url":"https://github.com/framgia/brs_37/pull/21.diff","patch_url":"https://github.com/framgia/brs_37/pull/21.patch","issue_url":"https://api.github.com/repos/framgia/brs_37/issues/21","number":21,"state":"open","locked":false,"title":"Write reviews","user":{"login":"Huyliver6793","id":18795322,"avatar_url":"https://avatars.githubusercontent.com/u/18795322?v=3","gravatar_id":"","url":"https://api.github.com/users/Huyliver6793","html_url":"https://github.com/Huyliver6793","followers_url":"https://api.github.com/users/Huyliver6793/followers","following_url":"https://api.github.com/users/Huyliver6793/following{/other_user}","gists_url":"https://api.github.com/users/Huyliver6793/gists{/gist_id}","starred_url":"https://api.github.com/users/Huyliver6793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huyliver6793/subscriptions","organizations_url":"https://api.github.com/users/Huyliver6793/orgs","repos_url":"https://api.github.com/users/Huyliver6793/repos","events_url":"https://api.github.com/users/Huyliver6793/events{/privacy}","received_events_url":"https://api.github.com/users/Huyliver6793/received_events","type":"User","site_admin":false},"body":"Write Reviews","created_at":"2016-10-07T03:56:49Z","updated_at":"2016-10-10T10:05:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a090df87a5983627a46141544c24bd006c1e1aed","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_37/pulls/21/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_37/pulls/21/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_37/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_37/issues/21/comments","statuses_url":"https://api.github.com/repos/framgia/brs_37/statuses/a78e21f04500315e13ddd752d1a5442805c6fe9b","head":{"label":"Huyliver6793:reviews","ref":"reviews","sha":"a78e21f04500315e13ddd752d1a5442805c6fe9b","user":{"login":"Huyliver6793","id":18795322,"avatar_url":"https://avatars.githubusercontent.com/u/18795322?v=3","gravatar_id":"","url":"https://api.github.com/users/Huyliver6793","html_url":"https://github.com/Huyliver6793","followers_url":"https://api.github.com/users/Huyliver6793/followers","following_url":"https://api.github.com/users/Huyliver6793/following{/other_user}","gists_url":"https://api.github.com/users/Huyliver6793/gists{/gist_id}","starred_url":"https://api.github.com/users/Huyliver6793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huyliver6793/subscriptions","organizations_url":"https://api.github.com/users/Huyliver6793/orgs","repos_url":"https://api.github.com/users/Huyliver6793/repos","events_url":"https://api.github.com/users/Huyliver6793/events{/privacy}","received_events_url":"https://api.github.com/users/Huyliver6793/received_events","type":"User","site_admin":false},"repo":{"id":69515748,"name":"brs_37","full_name":"Huyliver6793/brs_37","owner":{"login":"Huyliver6793","id":18795322,"avatar_url":"https://avatars.githubusercontent.com/u/18795322?v=3","gravatar_id":"","url":"https://api.github.com/users/Huyliver6793","html_url":"https://github.com/Huyliver6793","followers_url":"https://api.github.com/users/Huyliver6793/followers","following_url":"https://api.github.com/users/Huyliver6793/following{/other_user}","gists_url":"https://api.github.com/users/Huyliver6793/gists{/gist_id}","starred_url":"https://api.github.com/users/Huyliver6793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huyliver6793/subscriptions","organizations_url":"https://api.github.com/users/Huyliver6793/orgs","repos_url":"https://api.github.com/users/Huyliver6793/repos","events_url":"https://api.github.com/users/Huyliver6793/events{/privacy}","received_events_url":"https://api.github.com/users/Huyliver6793/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Huyliver6793/brs_37","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/Huyliver6793/brs_37","forks_url":"https://api.github.com/repos/Huyliver6793/brs_37/forks","keys_url":"https://api.github.com/repos/Huyliver6793/brs_37/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Huyliver6793/brs_37/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Huyliver6793/brs_37/teams","hooks_url":"https://api.github.com/repos/Huyliver6793/brs_37/hooks","issue_events_url":"https://api.github.com/repos/Huyliver6793/brs_37/issues/events{/number}","events_url":"https://api.github.com/repos/Huyliver6793/brs_37/events","assignees_url":"https://api.github.com/repos/Huyliver6793/brs_37/assignees{/user}","branches_url":"https://api.github.com/repos/Huyliver6793/brs_37/branches{/branch}","tags_url":"https://api.github.com/repos/Huyliver6793/brs_37/tags","blobs_url":"https://api.github.com/repos/Huyliver6793/brs_37/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Huyliver6793/brs_37/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Huyliver6793/brs_37/git/refs{/sha}","trees_url":"https://api.github.com/repos/Huyliver6793/brs_37/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Huyliver6793/brs_37/statuses/{sha}","languages_url":"https://api.github.com/repos/Huyliver6793/brs_37/languages","stargazers_url":"https://api.github.com/repos/Huyliver6793/brs_37/stargazers","contributors_url":"https://api.github.com/repos/Huyliver6793/brs_37/contributors","subscribers_url":"https://api.github.com/repos/Huyliver6793/brs_37/subscribers","subscription_url":"https://api.github.com/repos/Huyliver6793/brs_37/subscription","commits_url":"https://api.github.com/repos/Huyliver6793/brs_37/commits{/sha}","git_commits_url":"https://api.github.com/repos/Huyliver6793/brs_37/git/commits{/sha}","comments_url":"https://api.github.com/repos/Huyliver6793/brs_37/comments{/number}","issue_comment_url":"https://api.github.com/repos/Huyliver6793/brs_37/issues/comments{/number}","contents_url":"https://api.github.com/repos/Huyliver6793/brs_37/contents/{+path}","compare_url":"https://api.github.com/repos/Huyliver6793/brs_37/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Huyliver6793/brs_37/merges","archive_url":"https://api.github.com/repos/Huyliver6793/brs_37/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Huyliver6793/brs_37/downloads","issues_url":"https://api.github.com/repos/Huyliver6793/brs_37/issues{/number}","pulls_url":"https://api.github.com/repos/Huyliver6793/brs_37/pulls{/number}","milestones_url":"https://api.github.com/repos/Huyliver6793/brs_37/milestones{/number}","notifications_url":"https://api.github.com/repos/Huyliver6793/brs_37/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Huyliver6793/brs_37/labels{/name}","releases_url":"https://api.github.com/repos/Huyliver6793/brs_37/releases{/id}","deployments_url":"https://api.github.com/repos/Huyliver6793/brs_37/deployments","created_at":"2016-09-29T00:44:31Z","updated_at":"2016-09-27T09:09:34Z","pushed_at":"2016-10-10T09:27:32Z","git_url":"git://github.com/Huyliver6793/brs_37.git","ssh_url":"git@github.com:Huyliver6793/brs_37.git","clone_url":"https://github.com/Huyliver6793/brs_37.git","svn_url":"https://github.com/Huyliver6793/brs_37","homepage":null,"size":78,"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":"949bb421f4b6b21d039ccad8ce937e60c1d89961","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":69339061,"name":"brs_37","full_name":"framgia/brs_37","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_37","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_37","forks_url":"https://api.github.com/repos/framgia/brs_37/forks","keys_url":"https://api.github.com/repos/framgia/brs_37/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_37/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_37/teams","hooks_url":"https://api.github.com/repos/framgia/brs_37/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_37/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_37/events","assignees_url":"https://api.github.com/repos/framgia/brs_37/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_37/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_37/tags","blobs_url":"https://api.github.com/repos/framgia/brs_37/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_37/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_37/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_37/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_37/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_37/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_37/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_37/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_37/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_37/subscription","commits_url":"https://api.github.com/repos/framgia/brs_37/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_37/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_37/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_37/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_37/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_37/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_37/merges","archive_url":"https://api.github.com/repos/framgia/brs_37/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_37/downloads","issues_url":"https://api.github.com/repos/framgia/brs_37/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_37/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_37/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_37/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_37/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_37/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_37/deployments","created_at":"2016-09-27T09:09:34Z","updated_at":"2016-09-27T09:09:34Z","pushed_at":"2016-10-10T09:28:45Z","git_url":"git://github.com/framgia/brs_37.git","ssh_url":"git@github.com:framgia/brs_37.git","clone_url":"https://github.com/framgia/brs_37.git","svn_url":"https://github.com/framgia/brs_37","homepage":null,"size":120,"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":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_37/pulls/21"},"html":{"href":"https://github.com/framgia/brs_37/pull/21"},"issue":{"href":"https://api.github.com/repos/framgia/brs_37/issues/21"},"comments":{"href":"https://api.github.com/repos/framgia/brs_37/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_37/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_37/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_37/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_37/statuses/a78e21f04500315e13ddd752d1a5442805c6fe9b"}}}}
{"actor":{"display_login":"Huyliver6793"}}