{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_28/pulls/comments/70751135","id":70751135,"diff_hunk":"@@ -0,0 +1,33 @@\n+class UserBooksController < ApplicationController\n+  def new\n+    @user_book = UserBook.new\n+  end\n+\n+  def create\n+    @user_book = UserBook.new user_book_params\n+    if @user_book.save\n+      redirect_to book_path @user_book.book_id","path":"app/controllers/user_books_controller.rb","position":9,"original_position":9,"commit_id":"f58300fb55c05fd19db63e12ce747de77d5fc931","original_commit_id":"f58300fb55c05fd19db63e12ce747de77d5fc931","user":{"login":"nhunght","id":14239703,"avatar_url":"https://avatars.githubusercontent.com/u/14239703?v=3","gravatar_id":"","url":"https://api.github.com/users/nhunght","html_url":"https://github.com/nhunght","followers_url":"https://api.github.com/users/nhunght/followers","following_url":"https://api.github.com/users/nhunght/following{/other_user}","gists_url":"https://api.github.com/users/nhunght/gists{/gist_id}","starred_url":"https://api.github.com/users/nhunght/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhunght/subscriptions","organizations_url":"https://api.github.com/users/nhunght/orgs","repos_url":"https://api.github.com/users/nhunght/repos","events_url":"https://api.github.com/users/nhunght/events{/privacy}","received_events_url":"https://api.github.com/users/nhunght/received_events","type":"User","site_admin":false},"body":"phần này c xử lý bằng jquey ajax đi","created_at":"2016-07-14T05:42:46Z","updated_at":"2016-07-14T05:42:46Z","html_url":"https://github.com/framgia/brs_28/pull/27#discussion_r70751135","pull_request_url":"https://api.github.com/repos/framgia/brs_28/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_28/pulls/comments/70751135"},"html":{"href":"https://github.com/framgia/brs_28/pull/27#discussion_r70751135"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_28/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_28/pulls/27","id":77396284,"html_url":"https://github.com/framgia/brs_28/pull/27","diff_url":"https://github.com/framgia/brs_28/pull/27.diff","patch_url":"https://github.com/framgia/brs_28/pull/27.patch","issue_url":"https://api.github.com/repos/framgia/brs_28/issues/27","number":27,"state":"open","locked":false,"title":"mark_book","user":{"login":"cuongncFramgia","id":19605011,"avatar_url":"https://avatars.githubusercontent.com/u/19605011?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongncFramgia","html_url":"https://github.com/cuongncFramgia","followers_url":"https://api.github.com/users/cuongncFramgia/followers","following_url":"https://api.github.com/users/cuongncFramgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongncFramgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongncFramgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongncFramgia/subscriptions","organizations_url":"https://api.github.com/users/cuongncFramgia/orgs","repos_url":"https://api.github.com/users/cuongncFramgia/repos","events_url":"https://api.github.com/users/cuongncFramgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongncFramgia/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-14T03:52:04Z","updated_at":"2016-07-14T05:42:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28ec6c53937380bff1952dcb0e3ce62d03295773","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_28/pulls/27/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_28/pulls/27/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_28/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_28/issues/27/comments","statuses_url":"https://api.github.com/repos/framgia/brs_28/statuses/f58300fb55c05fd19db63e12ce747de77d5fc931","head":{"label":"cuongncFramgia:mark_book","ref":"mark_book","sha":"f58300fb55c05fd19db63e12ce747de77d5fc931","user":{"login":"cuongncFramgia","id":19605011,"avatar_url":"https://avatars.githubusercontent.com/u/19605011?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongncFramgia","html_url":"https://github.com/cuongncFramgia","followers_url":"https://api.github.com/users/cuongncFramgia/followers","following_url":"https://api.github.com/users/cuongncFramgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongncFramgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongncFramgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongncFramgia/subscriptions","organizations_url":"https://api.github.com/users/cuongncFramgia/orgs","repos_url":"https://api.github.com/users/cuongncFramgia/repos","events_url":"https://api.github.com/users/cuongncFramgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongncFramgia/received_events","type":"User","site_admin":false},"repo":{"id":62683974,"name":"brs_28","full_name":"cuongncFramgia/brs_28","owner":{"login":"cuongncFramgia","id":19605011,"avatar_url":"https://avatars.githubusercontent.com/u/19605011?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongncFramgia","html_url":"https://github.com/cuongncFramgia","followers_url":"https://api.github.com/users/cuongncFramgia/followers","following_url":"https://api.github.com/users/cuongncFramgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongncFramgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongncFramgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongncFramgia/subscriptions","organizations_url":"https://api.github.com/users/cuongncFramgia/orgs","repos_url":"https://api.github.com/users/cuongncFramgia/repos","events_url":"https://api.github.com/users/cuongncFramgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongncFramgia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cuongncFramgia/brs_28","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/cuongncFramgia/brs_28","forks_url":"https://api.github.com/repos/cuongncFramgia/brs_28/forks","keys_url":"https://api.github.com/repos/cuongncFramgia/brs_28/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuongncFramgia/brs_28/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuongncFramgia/brs_28/teams","hooks_url":"https://api.github.com/repos/cuongncFramgia/brs_28/hooks","issue_events_url":"https://api.github.com/repos/cuongncFramgia/brs_28/issues/events{/number}","events_url":"https://api.github.com/repos/cuongncFramgia/brs_28/events","assignees_url":"https://api.github.com/repos/cuongncFramgia/brs_28/assignees{/user}","branches_url":"https://api.github.com/repos/cuongncFramgia/brs_28/branches{/branch}","tags_url":"https://api.github.com/repos/cuongncFramgia/brs_28/tags","blobs_url":"https://api.github.com/repos/cuongncFramgia/brs_28/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuongncFramgia/brs_28/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuongncFramgia/brs_28/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuongncFramgia/brs_28/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuongncFramgia/brs_28/statuses/{sha}","languages_url":"https://api.github.com/repos/cuongncFramgia/brs_28/languages","stargazers_url":"https://api.github.com/repos/cuongncFramgia/brs_28/stargazers","contributors_url":"https://api.github.com/repos/cuongncFramgia/brs_28/contributors","subscribers_url":"https://api.github.com/repos/cuongncFramgia/brs_28/subscribers","subscription_url":"https://api.github.com/repos/cuongncFramgia/brs_28/subscription","commits_url":"https://api.github.com/repos/cuongncFramgia/brs_28/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuongncFramgia/brs_28/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuongncFramgia/brs_28/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuongncFramgia/brs_28/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuongncFramgia/brs_28/contents/{+path}","compare_url":"https://api.github.com/repos/cuongncFramgia/brs_28/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuongncFramgia/brs_28/merges","archive_url":"https://api.github.com/repos/cuongncFramgia/brs_28/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuongncFramgia/brs_28/downloads","issues_url":"https://api.github.com/repos/cuongncFramgia/brs_28/issues{/number}","pulls_url":"https://api.github.com/repos/cuongncFramgia/brs_28/pulls{/number}","milestones_url":"https://api.github.com/repos/cuongncFramgia/brs_28/milestones{/number}","notifications_url":"https://api.github.com/repos/cuongncFramgia/brs_28/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuongncFramgia/brs_28/labels{/name}","releases_url":"https://api.github.com/repos/cuongncFramgia/brs_28/releases{/id}","deployments_url":"https://api.github.com/repos/cuongncFramgia/brs_28/deployments","created_at":"2016-07-06T02:14:43Z","updated_at":"2016-07-05T01:28:27Z","pushed_at":"2016-07-14T04:15:34Z","git_url":"git://github.com/cuongncFramgia/brs_28.git","ssh_url":"git@github.com:cuongncFramgia/brs_28.git","clone_url":"https://github.com/cuongncFramgia/brs_28.git","svn_url":"https://github.com/cuongncFramgia/brs_28","homepage":null,"size":631,"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":"a88305dc80806667f23edd288352644fca3125d4","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":62596865,"name":"brs_28","full_name":"framgia/brs_28","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_28","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_28","forks_url":"https://api.github.com/repos/framgia/brs_28/forks","keys_url":"https://api.github.com/repos/framgia/brs_28/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_28/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_28/teams","hooks_url":"https://api.github.com/repos/framgia/brs_28/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_28/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_28/events","assignees_url":"https://api.github.com/repos/framgia/brs_28/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_28/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_28/tags","blobs_url":"https://api.github.com/repos/framgia/brs_28/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_28/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_28/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_28/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_28/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_28/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_28/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_28/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_28/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_28/subscription","commits_url":"https://api.github.com/repos/framgia/brs_28/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_28/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_28/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_28/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_28/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_28/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_28/merges","archive_url":"https://api.github.com/repos/framgia/brs_28/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_28/downloads","issues_url":"https://api.github.com/repos/framgia/brs_28/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_28/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_28/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_28/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_28/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_28/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_28/deployments","created_at":"2016-07-05T01:28:27Z","updated_at":"2016-07-05T01:28:27Z","pushed_at":"2016-07-14T04:34:00Z","git_url":"git://github.com/framgia/brs_28.git","ssh_url":"git@github.com:framgia/brs_28.git","clone_url":"https://github.com/framgia/brs_28.git","svn_url":"https://github.com/framgia/brs_28","homepage":null,"size":646,"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":5,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_28/pulls/27"},"html":{"href":"https://github.com/framgia/brs_28/pull/27"},"issue":{"href":"https://api.github.com/repos/framgia/brs_28/issues/27"},"comments":{"href":"https://api.github.com/repos/framgia/brs_28/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_28/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_28/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_28/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_28/statuses/f58300fb55c05fd19db63e12ce747de77d5fc931"}}}}
{"actor":{"display_login":"nhunght"}}