{"action":"created","comment":{"url":"https://api.github.com/repos/duphungcong/depot/pulls/comments/56362382","id":56362382,"diff_hunk":"@@ -0,0 +1,5 @@\n+module ReviewsHelper\n+  def form_submit_url(review)\n+    review.new_record? ? product_reviews_path : product_review_path\n+  end","path":"app/helpers/reviews_helper.rb","position":4,"original_position":4,"commit_id":"7a59aa1f95630ccb1a616a3d58bc38c7cd3b77f6","original_commit_id":"7a59aa1f95630ccb1a616a3d58bc38c7cd3b77f6","user":{"login":"buitranquyet","id":5118000,"avatar_url":"https://avatars.githubusercontent.com/u/5118000?v=3","gravatar_id":"","url":"https://api.github.com/users/buitranquyet","html_url":"https://github.com/buitranquyet","followers_url":"https://api.github.com/users/buitranquyet/followers","following_url":"https://api.github.com/users/buitranquyet/following{/other_user}","gists_url":"https://api.github.com/users/buitranquyet/gists{/gist_id}","starred_url":"https://api.github.com/users/buitranquyet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buitranquyet/subscriptions","organizations_url":"https://api.github.com/users/buitranquyet/orgs","repos_url":"https://api.github.com/users/buitranquyet/repos","events_url":"https://api.github.com/users/buitranquyet/events{/privacy}","received_events_url":"https://api.github.com/users/buitranquyet/received_events","type":"User","site_admin":false},"body":"Google form_for with nested resources! Không cần viết method này","created_at":"2016-03-16T16:07:50Z","updated_at":"2016-03-16T16:07:50Z","html_url":"https://github.com/duphungcong/depot/pull/1#discussion_r56362382","pull_request_url":"https://api.github.com/repos/duphungcong/depot/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/duphungcong/depot/pulls/comments/56362382"},"html":{"href":"https://github.com/duphungcong/depot/pull/1#discussion_r56362382"},"pull_request":{"href":"https://api.github.com/repos/duphungcong/depot/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/duphungcong/depot/pulls/1","id":63085995,"html_url":"https://github.com/duphungcong/depot/pull/1","diff_url":"https://github.com/duphungcong/depot/pull/1.diff","patch_url":"https://github.com/duphungcong/depot/pull/1.patch","issue_url":"https://api.github.com/repos/duphungcong/depot/issues/1","number":1,"state":"open","locked":false,"title":"user can review book","user":{"login":"duphungcong","id":10046065,"avatar_url":"https://avatars.githubusercontent.com/u/10046065?v=3","gravatar_id":"","url":"https://api.github.com/users/duphungcong","html_url":"https://github.com/duphungcong","followers_url":"https://api.github.com/users/duphungcong/followers","following_url":"https://api.github.com/users/duphungcong/following{/other_user}","gists_url":"https://api.github.com/users/duphungcong/gists{/gist_id}","starred_url":"https://api.github.com/users/duphungcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duphungcong/subscriptions","organizations_url":"https://api.github.com/users/duphungcong/orgs","repos_url":"https://api.github.com/users/duphungcong/repos","events_url":"https://api.github.com/users/duphungcong/events{/privacy}","received_events_url":"https://api.github.com/users/duphungcong/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-16T15:40:22Z","updated_at":"2016-03-16T16:07:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57d3cc25a8fe5a66def79d340b2cdfe8319c94fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duphungcong/depot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/duphungcong/depot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/duphungcong/depot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/duphungcong/depot/issues/1/comments","statuses_url":"https://api.github.com/repos/duphungcong/depot/statuses/7a59aa1f95630ccb1a616a3d58bc38c7cd3b77f6","head":{"label":"duphungcong:book-review","ref":"book-review","sha":"7a59aa1f95630ccb1a616a3d58bc38c7cd3b77f6","user":{"login":"duphungcong","id":10046065,"avatar_url":"https://avatars.githubusercontent.com/u/10046065?v=3","gravatar_id":"","url":"https://api.github.com/users/duphungcong","html_url":"https://github.com/duphungcong","followers_url":"https://api.github.com/users/duphungcong/followers","following_url":"https://api.github.com/users/duphungcong/following{/other_user}","gists_url":"https://api.github.com/users/duphungcong/gists{/gist_id}","starred_url":"https://api.github.com/users/duphungcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duphungcong/subscriptions","organizations_url":"https://api.github.com/users/duphungcong/orgs","repos_url":"https://api.github.com/users/duphungcong/repos","events_url":"https://api.github.com/users/duphungcong/events{/privacy}","received_events_url":"https://api.github.com/users/duphungcong/received_events","type":"User","site_admin":false},"repo":{"id":52664971,"name":"depot","full_name":"duphungcong/depot","owner":{"login":"duphungcong","id":10046065,"avatar_url":"https://avatars.githubusercontent.com/u/10046065?v=3","gravatar_id":"","url":"https://api.github.com/users/duphungcong","html_url":"https://github.com/duphungcong","followers_url":"https://api.github.com/users/duphungcong/followers","following_url":"https://api.github.com/users/duphungcong/following{/other_user}","gists_url":"https://api.github.com/users/duphungcong/gists{/gist_id}","starred_url":"https://api.github.com/users/duphungcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duphungcong/subscriptions","organizations_url":"https://api.github.com/users/duphungcong/orgs","repos_url":"https://api.github.com/users/duphungcong/repos","events_url":"https://api.github.com/users/duphungcong/events{/privacy}","received_events_url":"https://api.github.com/users/duphungcong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duphungcong/depot","description":"Book Store Online","fork":false,"url":"https://api.github.com/repos/duphungcong/depot","forks_url":"https://api.github.com/repos/duphungcong/depot/forks","keys_url":"https://api.github.com/repos/duphungcong/depot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duphungcong/depot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duphungcong/depot/teams","hooks_url":"https://api.github.com/repos/duphungcong/depot/hooks","issue_events_url":"https://api.github.com/repos/duphungcong/depot/issues/events{/number}","events_url":"https://api.github.com/repos/duphungcong/depot/events","assignees_url":"https://api.github.com/repos/duphungcong/depot/assignees{/user}","branches_url":"https://api.github.com/repos/duphungcong/depot/branches{/branch}","tags_url":"https://api.github.com/repos/duphungcong/depot/tags","blobs_url":"https://api.github.com/repos/duphungcong/depot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duphungcong/depot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duphungcong/depot/git/refs{/sha}","trees_url":"https://api.github.com/repos/duphungcong/depot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duphungcong/depot/statuses/{sha}","languages_url":"https://api.github.com/repos/duphungcong/depot/languages","stargazers_url":"https://api.github.com/repos/duphungcong/depot/stargazers","contributors_url":"https://api.github.com/repos/duphungcong/depot/contributors","subscribers_url":"https://api.github.com/repos/duphungcong/depot/subscribers","subscription_url":"https://api.github.com/repos/duphungcong/depot/subscription","commits_url":"https://api.github.com/repos/duphungcong/depot/commits{/sha}","git_commits_url":"https://api.github.com/repos/duphungcong/depot/git/commits{/sha}","comments_url":"https://api.github.com/repos/duphungcong/depot/comments{/number}","issue_comment_url":"https://api.github.com/repos/duphungcong/depot/issues/comments{/number}","contents_url":"https://api.github.com/repos/duphungcong/depot/contents/{+path}","compare_url":"https://api.github.com/repos/duphungcong/depot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duphungcong/depot/merges","archive_url":"https://api.github.com/repos/duphungcong/depot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duphungcong/depot/downloads","issues_url":"https://api.github.com/repos/duphungcong/depot/issues{/number}","pulls_url":"https://api.github.com/repos/duphungcong/depot/pulls{/number}","milestones_url":"https://api.github.com/repos/duphungcong/depot/milestones{/number}","notifications_url":"https://api.github.com/repos/duphungcong/depot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duphungcong/depot/labels{/name}","releases_url":"https://api.github.com/repos/duphungcong/depot/releases{/id}","deployments_url":"https://api.github.com/repos/duphungcong/depot/deployments","created_at":"2016-02-27T12:07:54Z","updated_at":"2016-02-27T12:09:20Z","pushed_at":"2016-03-16T15:40:22Z","git_url":"git://github.com/duphungcong/depot.git","ssh_url":"git@github.com:duphungcong/depot.git","clone_url":"https://github.com/duphungcong/depot.git","svn_url":"https://github.com/duphungcong/depot","homepage":null,"size":159,"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":"duphungcong:master","ref":"master","sha":"f9437fabda4faa2405109ba2eb6c3bb2f174e0b8","user":{"login":"duphungcong","id":10046065,"avatar_url":"https://avatars.githubusercontent.com/u/10046065?v=3","gravatar_id":"","url":"https://api.github.com/users/duphungcong","html_url":"https://github.com/duphungcong","followers_url":"https://api.github.com/users/duphungcong/followers","following_url":"https://api.github.com/users/duphungcong/following{/other_user}","gists_url":"https://api.github.com/users/duphungcong/gists{/gist_id}","starred_url":"https://api.github.com/users/duphungcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duphungcong/subscriptions","organizations_url":"https://api.github.com/users/duphungcong/orgs","repos_url":"https://api.github.com/users/duphungcong/repos","events_url":"https://api.github.com/users/duphungcong/events{/privacy}","received_events_url":"https://api.github.com/users/duphungcong/received_events","type":"User","site_admin":false},"repo":{"id":52664971,"name":"depot","full_name":"duphungcong/depot","owner":{"login":"duphungcong","id":10046065,"avatar_url":"https://avatars.githubusercontent.com/u/10046065?v=3","gravatar_id":"","url":"https://api.github.com/users/duphungcong","html_url":"https://github.com/duphungcong","followers_url":"https://api.github.com/users/duphungcong/followers","following_url":"https://api.github.com/users/duphungcong/following{/other_user}","gists_url":"https://api.github.com/users/duphungcong/gists{/gist_id}","starred_url":"https://api.github.com/users/duphungcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duphungcong/subscriptions","organizations_url":"https://api.github.com/users/duphungcong/orgs","repos_url":"https://api.github.com/users/duphungcong/repos","events_url":"https://api.github.com/users/duphungcong/events{/privacy}","received_events_url":"https://api.github.com/users/duphungcong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duphungcong/depot","description":"Book Store Online","fork":false,"url":"https://api.github.com/repos/duphungcong/depot","forks_url":"https://api.github.com/repos/duphungcong/depot/forks","keys_url":"https://api.github.com/repos/duphungcong/depot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duphungcong/depot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duphungcong/depot/teams","hooks_url":"https://api.github.com/repos/duphungcong/depot/hooks","issue_events_url":"https://api.github.com/repos/duphungcong/depot/issues/events{/number}","events_url":"https://api.github.com/repos/duphungcong/depot/events","assignees_url":"https://api.github.com/repos/duphungcong/depot/assignees{/user}","branches_url":"https://api.github.com/repos/duphungcong/depot/branches{/branch}","tags_url":"https://api.github.com/repos/duphungcong/depot/tags","blobs_url":"https://api.github.com/repos/duphungcong/depot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duphungcong/depot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duphungcong/depot/git/refs{/sha}","trees_url":"https://api.github.com/repos/duphungcong/depot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duphungcong/depot/statuses/{sha}","languages_url":"https://api.github.com/repos/duphungcong/depot/languages","stargazers_url":"https://api.github.com/repos/duphungcong/depot/stargazers","contributors_url":"https://api.github.com/repos/duphungcong/depot/contributors","subscribers_url":"https://api.github.com/repos/duphungcong/depot/subscribers","subscription_url":"https://api.github.com/repos/duphungcong/depot/subscription","commits_url":"https://api.github.com/repos/duphungcong/depot/commits{/sha}","git_commits_url":"https://api.github.com/repos/duphungcong/depot/git/commits{/sha}","comments_url":"https://api.github.com/repos/duphungcong/depot/comments{/number}","issue_comment_url":"https://api.github.com/repos/duphungcong/depot/issues/comments{/number}","contents_url":"https://api.github.com/repos/duphungcong/depot/contents/{+path}","compare_url":"https://api.github.com/repos/duphungcong/depot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duphungcong/depot/merges","archive_url":"https://api.github.com/repos/duphungcong/depot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duphungcong/depot/downloads","issues_url":"https://api.github.com/repos/duphungcong/depot/issues{/number}","pulls_url":"https://api.github.com/repos/duphungcong/depot/pulls{/number}","milestones_url":"https://api.github.com/repos/duphungcong/depot/milestones{/number}","notifications_url":"https://api.github.com/repos/duphungcong/depot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duphungcong/depot/labels{/name}","releases_url":"https://api.github.com/repos/duphungcong/depot/releases{/id}","deployments_url":"https://api.github.com/repos/duphungcong/depot/deployments","created_at":"2016-02-27T12:07:54Z","updated_at":"2016-02-27T12:09:20Z","pushed_at":"2016-03-16T15:40:22Z","git_url":"git://github.com/duphungcong/depot.git","ssh_url":"git@github.com:duphungcong/depot.git","clone_url":"https://github.com/duphungcong/depot.git","svn_url":"https://github.com/duphungcong/depot","homepage":null,"size":159,"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/duphungcong/depot/pulls/1"},"html":{"href":"https://github.com/duphungcong/depot/pull/1"},"issue":{"href":"https://api.github.com/repos/duphungcong/depot/issues/1"},"comments":{"href":"https://api.github.com/repos/duphungcong/depot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/duphungcong/depot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/duphungcong/depot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/duphungcong/depot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/duphungcong/depot/statuses/7a59aa1f95630ccb1a616a3d58bc38c7cd3b77f6"}}}}