{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_35/pulls/comments/83148916","pull_request_review_id":4008485,"id":83148916,"diff_hunk":"@@ -15,9 +17,35 @@ def create\n     end\n   end\n \n+  def show\n+    @reviews = @user.reviews.includes(:user, :book, comments:[:user]).newest\n+      .paginate page: params[:page], per_page: Settings.per_page\n+    @favourite_list = User.favourite_list @user.id\n+  end\n+\n+  def following\n+    @title = t \"following\"\n+    @users = @user.following.paginate(page: params[:page])\n+    render \"show_follow\"\n+  end\n+\n+  def followers\n+    @title = t \"followers\"\n+    @users = @user.followers.paginate(page: params[:page])\n+    render \"show_follow\"\n+  end\n+\n   private\n   def user_params\n     params.require(:user).permit(:name, :email, :password,","path":"app/controllers/users_controller.rb","position":32,"original_position":32,"commit_id":"25c2d7cc137bf319ddb0b7618977caab2a3b8e6e","original_commit_id":"25c2d7cc137bf319ddb0b7618977caab2a3b8e6e","user":{"login":"tranducquoc","id":17246945,"avatar_url":"https://avatars.githubusercontent.com/u/17246945?v=3","gravatar_id":"","url":"https://api.github.com/users/tranducquoc","html_url":"https://github.com/tranducquoc","followers_url":"https://api.github.com/users/tranducquoc/followers","following_url":"https://api.github.com/users/tranducquoc/following{/other_user}","gists_url":"https://api.github.com/users/tranducquoc/gists{/gist_id}","starred_url":"https://api.github.com/users/tranducquoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranducquoc/subscriptions","organizations_url":"https://api.github.com/users/tranducquoc/orgs","repos_url":"https://api.github.com/users/tranducquoc/repos","events_url":"https://api.github.com/users/tranducquoc/events{/privacy}","received_events_url":"https://api.github.com/users/tranducquoc/received_events","type":"User","site_admin":false},"body":"params.require(:user).permit :name, :email, :password,\r\n        :password_confirmation","created_at":"2016-10-13T06:06:10Z","updated_at":"2016-10-13T06:06:10Z","html_url":"https://github.com/framgia/brs_35/pull/28#discussion_r83148916","pull_request_url":"https://api.github.com/repos/framgia/brs_35/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/comments/83148916"},"html":{"href":"https://github.com/framgia/brs_35/pull/28#discussion_r83148916"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_35/pulls/28","id":89033631,"html_url":"https://github.com/framgia/brs_35/pull/28","diff_url":"https://github.com/framgia/brs_35/pull/28.diff","patch_url":"https://github.com/framgia/brs_35/pull/28.patch","issue_url":"https://api.github.com/repos/framgia/brs_35/issues/28","number":28,"state":"open","locked":false,"title":"User Profile","user":{"login":"quyenguyengoc","id":22010913,"avatar_url":"https://avatars.githubusercontent.com/u/22010913?v=3","gravatar_id":"","url":"https://api.github.com/users/quyenguyengoc","html_url":"https://github.com/quyenguyengoc","followers_url":"https://api.github.com/users/quyenguyengoc/followers","following_url":"https://api.github.com/users/quyenguyengoc/following{/other_user}","gists_url":"https://api.github.com/users/quyenguyengoc/gists{/gist_id}","starred_url":"https://api.github.com/users/quyenguyengoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quyenguyengoc/subscriptions","organizations_url":"https://api.github.com/users/quyenguyengoc/orgs","repos_url":"https://api.github.com/users/quyenguyengoc/repos","events_url":"https://api.github.com/users/quyenguyengoc/events{/privacy}","received_events_url":"https://api.github.com/users/quyenguyengoc/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T15:05:24Z","updated_at":"2016-10-13T06:06:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30a7970d2f4d20e73b38deb428f8a63e0019c575","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_35/pulls/28/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_35/pulls/28/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_35/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_35/issues/28/comments","statuses_url":"https://api.github.com/repos/framgia/brs_35/statuses/25c2d7cc137bf319ddb0b7618977caab2a3b8e6e","head":{"label":"quyenguyengoc:profile-user","ref":"profile-user","sha":"25c2d7cc137bf319ddb0b7618977caab2a3b8e6e","user":{"login":"quyenguyengoc","id":22010913,"avatar_url":"https://avatars.githubusercontent.com/u/22010913?v=3","gravatar_id":"","url":"https://api.github.com/users/quyenguyengoc","html_url":"https://github.com/quyenguyengoc","followers_url":"https://api.github.com/users/quyenguyengoc/followers","following_url":"https://api.github.com/users/quyenguyengoc/following{/other_user}","gists_url":"https://api.github.com/users/quyenguyengoc/gists{/gist_id}","starred_url":"https://api.github.com/users/quyenguyengoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quyenguyengoc/subscriptions","organizations_url":"https://api.github.com/users/quyenguyengoc/orgs","repos_url":"https://api.github.com/users/quyenguyengoc/repos","events_url":"https://api.github.com/users/quyenguyengoc/events{/privacy}","received_events_url":"https://api.github.com/users/quyenguyengoc/received_events","type":"User","site_admin":false},"repo":{"id":69517298,"name":"brs_35","full_name":"quyenguyengoc/brs_35","owner":{"login":"quyenguyengoc","id":22010913,"avatar_url":"https://avatars.githubusercontent.com/u/22010913?v=3","gravatar_id":"","url":"https://api.github.com/users/quyenguyengoc","html_url":"https://github.com/quyenguyengoc","followers_url":"https://api.github.com/users/quyenguyengoc/followers","following_url":"https://api.github.com/users/quyenguyengoc/following{/other_user}","gists_url":"https://api.github.com/users/quyenguyengoc/gists{/gist_id}","starred_url":"https://api.github.com/users/quyenguyengoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quyenguyengoc/subscriptions","organizations_url":"https://api.github.com/users/quyenguyengoc/orgs","repos_url":"https://api.github.com/users/quyenguyengoc/repos","events_url":"https://api.github.com/users/quyenguyengoc/events{/privacy}","received_events_url":"https://api.github.com/users/quyenguyengoc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/quyenguyengoc/brs_35","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/quyenguyengoc/brs_35","forks_url":"https://api.github.com/repos/quyenguyengoc/brs_35/forks","keys_url":"https://api.github.com/repos/quyenguyengoc/brs_35/keys{/key_id}","collaborators_url":"https://api.github.com/repos/quyenguyengoc/brs_35/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/quyenguyengoc/brs_35/teams","hooks_url":"https://api.github.com/repos/quyenguyengoc/brs_35/hooks","issue_events_url":"https://api.github.com/repos/quyenguyengoc/brs_35/issues/events{/number}","events_url":"https://api.github.com/repos/quyenguyengoc/brs_35/events","assignees_url":"https://api.github.com/repos/quyenguyengoc/brs_35/assignees{/user}","branches_url":"https://api.github.com/repos/quyenguyengoc/brs_35/branches{/branch}","tags_url":"https://api.github.com/repos/quyenguyengoc/brs_35/tags","blobs_url":"https://api.github.com/repos/quyenguyengoc/brs_35/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/quyenguyengoc/brs_35/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/quyenguyengoc/brs_35/git/refs{/sha}","trees_url":"https://api.github.com/repos/quyenguyengoc/brs_35/git/trees{/sha}","statuses_url":"https://api.github.com/repos/quyenguyengoc/brs_35/statuses/{sha}","languages_url":"https://api.github.com/repos/quyenguyengoc/brs_35/languages","stargazers_url":"https://api.github.com/repos/quyenguyengoc/brs_35/stargazers","contributors_url":"https://api.github.com/repos/quyenguyengoc/brs_35/contributors","subscribers_url":"https://api.github.com/repos/quyenguyengoc/brs_35/subscribers","subscription_url":"https://api.github.com/repos/quyenguyengoc/brs_35/subscription","commits_url":"https://api.github.com/repos/quyenguyengoc/brs_35/commits{/sha}","git_commits_url":"https://api.github.com/repos/quyenguyengoc/brs_35/git/commits{/sha}","comments_url":"https://api.github.com/repos/quyenguyengoc/brs_35/comments{/number}","issue_comment_url":"https://api.github.com/repos/quyenguyengoc/brs_35/issues/comments{/number}","contents_url":"https://api.github.com/repos/quyenguyengoc/brs_35/contents/{+path}","compare_url":"https://api.github.com/repos/quyenguyengoc/brs_35/compare/{base}...{head}","merges_url":"https://api.github.com/repos/quyenguyengoc/brs_35/merges","archive_url":"https://api.github.com/repos/quyenguyengoc/brs_35/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/quyenguyengoc/brs_35/downloads","issues_url":"https://api.github.com/repos/quyenguyengoc/brs_35/issues{/number}","pulls_url":"https://api.github.com/repos/quyenguyengoc/brs_35/pulls{/number}","milestones_url":"https://api.github.com/repos/quyenguyengoc/brs_35/milestones{/number}","notifications_url":"https://api.github.com/repos/quyenguyengoc/brs_35/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/quyenguyengoc/brs_35/labels{/name}","releases_url":"https://api.github.com/repos/quyenguyengoc/brs_35/releases{/id}","deployments_url":"https://api.github.com/repos/quyenguyengoc/brs_35/deployments","created_at":"2016-09-29T01:10:03Z","updated_at":"2016-09-27T09:08:04Z","pushed_at":"2016-10-12T15:22:32Z","git_url":"git://github.com/quyenguyengoc/brs_35.git","ssh_url":"git@github.com:quyenguyengoc/brs_35.git","clone_url":"https://github.com/quyenguyengoc/brs_35.git","svn_url":"https://github.com/quyenguyengoc/brs_35","homepage":null,"size":1688,"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":"61091b04257501d0c84a0cfdb0241296d683f41b","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":69338924,"name":"brs_35","full_name":"framgia/brs_35","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_35","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_35","forks_url":"https://api.github.com/repos/framgia/brs_35/forks","keys_url":"https://api.github.com/repos/framgia/brs_35/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_35/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_35/teams","hooks_url":"https://api.github.com/repos/framgia/brs_35/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_35/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_35/events","assignees_url":"https://api.github.com/repos/framgia/brs_35/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_35/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_35/tags","blobs_url":"https://api.github.com/repos/framgia/brs_35/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_35/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_35/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_35/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_35/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_35/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_35/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_35/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_35/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_35/subscription","commits_url":"https://api.github.com/repos/framgia/brs_35/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_35/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_35/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_35/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_35/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_35/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_35/merges","archive_url":"https://api.github.com/repos/framgia/brs_35/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_35/downloads","issues_url":"https://api.github.com/repos/framgia/brs_35/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_35/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_35/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_35/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_35/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_35/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_35/deployments","created_at":"2016-09-27T09:08:04Z","updated_at":"2016-09-27T09:08:04Z","pushed_at":"2016-10-13T05:39:56Z","git_url":"git://github.com/framgia/brs_35.git","ssh_url":"git@github.com:framgia/brs_35.git","clone_url":"https://github.com/framgia/brs_35.git","svn_url":"https://github.com/framgia/brs_35","homepage":null,"size":2228,"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_35/pulls/28"},"html":{"href":"https://github.com/framgia/brs_35/pull/28"},"issue":{"href":"https://api.github.com/repos/framgia/brs_35/issues/28"},"comments":{"href":"https://api.github.com/repos/framgia/brs_35/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_35/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_35/statuses/25c2d7cc137bf319ddb0b7618977caab2a3b8e6e"}}}}
{"actor":{"display_login":"tranducquoc"}}