{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_182/pulls/comments/79116580","id":79116580,"diff_hunk":"@@ -0,0 +1,31 @@\n+class RelationshipsController < ApplicationController\n+  before_action :require_logged_in_user\n+  before_action :load_user, only: :index\n+\n+  def index\n+    @users = params[:type] == :following.to_s ?\n+      @user.following : @user.followers\n+    respond_to do |format|\n+      format.html {redirect_to @user}","path":"app/controllers/relationships_controller.rb","position":null,"original_position":9,"commit_id":"854ef43b667e30bfb9e0c09fa66d478b14f16165","original_commit_id":"ab11e4f2af896090424c54acb20df7ff56b95525","user":{"login":"furytara","id":6050152,"avatar_url":"https://avatars.githubusercontent.com/u/6050152?v=3","gravatar_id":"","url":"https://api.github.com/users/furytara","html_url":"https://github.com/furytara","followers_url":"https://api.github.com/users/furytara/followers","following_url":"https://api.github.com/users/furytara/following{/other_user}","gists_url":"https://api.github.com/users/furytara/gists{/gist_id}","starred_url":"https://api.github.com/users/furytara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furytara/subscriptions","organizations_url":"https://api.github.com/users/furytara/orgs","repos_url":"https://api.github.com/users/furytara/repos","events_url":"https://api.github.com/users/furytara/events{/privacy}","received_events_url":"https://api.github.com/users/furytara/received_events","type":"User","site_admin":false},"body":"redirect ở đâu là redirect về trang show user. Nêu không phải gọi bằng ajax thì nó sẽ dùng format html này.  ","created_at":"2016-09-16T07:13:36Z","updated_at":"2016-09-16T07:13:36Z","html_url":"https://github.com/framgia/fels_182/pull/26#discussion_r79116580","pull_request_url":"https://api.github.com/repos/framgia/fels_182/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/comments/79116580"},"html":{"href":"https://github.com/framgia/fels_182/pull/26#discussion_r79116580"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_182/pulls/26","id":85512927,"html_url":"https://github.com/framgia/fels_182/pull/26","diff_url":"https://github.com/framgia/fels_182/pull/26.diff","patch_url":"https://github.com/framgia/fels_182/pull/26.patch","issue_url":"https://api.github.com/repos/framgia/fels_182/issues/26","number":26,"state":"open","locked":false,"title":"follow user","user":{"login":"furytara","id":6050152,"avatar_url":"https://avatars.githubusercontent.com/u/6050152?v=3","gravatar_id":"","url":"https://api.github.com/users/furytara","html_url":"https://github.com/furytara","followers_url":"https://api.github.com/users/furytara/followers","following_url":"https://api.github.com/users/furytara/following{/other_user}","gists_url":"https://api.github.com/users/furytara/gists{/gist_id}","starred_url":"https://api.github.com/users/furytara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furytara/subscriptions","organizations_url":"https://api.github.com/users/furytara/orgs","repos_url":"https://api.github.com/users/furytara/repos","events_url":"https://api.github.com/users/furytara/events{/privacy}","received_events_url":"https://api.github.com/users/furytara/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-16T03:02:55Z","updated_at":"2016-09-16T07:13:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a5f969e644fc430220154ebb86a04d3535488fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_182/pulls/26/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_182/pulls/26/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_182/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_182/issues/26/comments","statuses_url":"https://api.github.com/repos/framgia/fels_182/statuses/854ef43b667e30bfb9e0c09fa66d478b14f16165","head":{"label":"furytara:75776_follow_user","ref":"75776_follow_user","sha":"854ef43b667e30bfb9e0c09fa66d478b14f16165","user":{"login":"furytara","id":6050152,"avatar_url":"https://avatars.githubusercontent.com/u/6050152?v=3","gravatar_id":"","url":"https://api.github.com/users/furytara","html_url":"https://github.com/furytara","followers_url":"https://api.github.com/users/furytara/followers","following_url":"https://api.github.com/users/furytara/following{/other_user}","gists_url":"https://api.github.com/users/furytara/gists{/gist_id}","starred_url":"https://api.github.com/users/furytara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furytara/subscriptions","organizations_url":"https://api.github.com/users/furytara/orgs","repos_url":"https://api.github.com/users/furytara/repos","events_url":"https://api.github.com/users/furytara/events{/privacy}","received_events_url":"https://api.github.com/users/furytara/received_events","type":"User","site_admin":false},"repo":{"id":67470072,"name":"fels_182","full_name":"furytara/fels_182","owner":{"login":"furytara","id":6050152,"avatar_url":"https://avatars.githubusercontent.com/u/6050152?v=3","gravatar_id":"","url":"https://api.github.com/users/furytara","html_url":"https://github.com/furytara","followers_url":"https://api.github.com/users/furytara/followers","following_url":"https://api.github.com/users/furytara/following{/other_user}","gists_url":"https://api.github.com/users/furytara/gists{/gist_id}","starred_url":"https://api.github.com/users/furytara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/furytara/subscriptions","organizations_url":"https://api.github.com/users/furytara/orgs","repos_url":"https://api.github.com/users/furytara/repos","events_url":"https://api.github.com/users/furytara/events{/privacy}","received_events_url":"https://api.github.com/users/furytara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/furytara/fels_182","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/furytara/fels_182","forks_url":"https://api.github.com/repos/furytara/fels_182/forks","keys_url":"https://api.github.com/repos/furytara/fels_182/keys{/key_id}","collaborators_url":"https://api.github.com/repos/furytara/fels_182/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/furytara/fels_182/teams","hooks_url":"https://api.github.com/repos/furytara/fels_182/hooks","issue_events_url":"https://api.github.com/repos/furytara/fels_182/issues/events{/number}","events_url":"https://api.github.com/repos/furytara/fels_182/events","assignees_url":"https://api.github.com/repos/furytara/fels_182/assignees{/user}","branches_url":"https://api.github.com/repos/furytara/fels_182/branches{/branch}","tags_url":"https://api.github.com/repos/furytara/fels_182/tags","blobs_url":"https://api.github.com/repos/furytara/fels_182/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/furytara/fels_182/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/furytara/fels_182/git/refs{/sha}","trees_url":"https://api.github.com/repos/furytara/fels_182/git/trees{/sha}","statuses_url":"https://api.github.com/repos/furytara/fels_182/statuses/{sha}","languages_url":"https://api.github.com/repos/furytara/fels_182/languages","stargazers_url":"https://api.github.com/repos/furytara/fels_182/stargazers","contributors_url":"https://api.github.com/repos/furytara/fels_182/contributors","subscribers_url":"https://api.github.com/repos/furytara/fels_182/subscribers","subscription_url":"https://api.github.com/repos/furytara/fels_182/subscription","commits_url":"https://api.github.com/repos/furytara/fels_182/commits{/sha}","git_commits_url":"https://api.github.com/repos/furytara/fels_182/git/commits{/sha}","comments_url":"https://api.github.com/repos/furytara/fels_182/comments{/number}","issue_comment_url":"https://api.github.com/repos/furytara/fels_182/issues/comments{/number}","contents_url":"https://api.github.com/repos/furytara/fels_182/contents/{+path}","compare_url":"https://api.github.com/repos/furytara/fels_182/compare/{base}...{head}","merges_url":"https://api.github.com/repos/furytara/fels_182/merges","archive_url":"https://api.github.com/repos/furytara/fels_182/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/furytara/fels_182/downloads","issues_url":"https://api.github.com/repos/furytara/fels_182/issues{/number}","pulls_url":"https://api.github.com/repos/furytara/fels_182/pulls{/number}","milestones_url":"https://api.github.com/repos/furytara/fels_182/milestones{/number}","notifications_url":"https://api.github.com/repos/furytara/fels_182/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/furytara/fels_182/labels{/name}","releases_url":"https://api.github.com/repos/furytara/fels_182/releases{/id}","deployments_url":"https://api.github.com/repos/furytara/fels_182/deployments","created_at":"2016-09-06T03:27:13Z","updated_at":"2016-08-31T03:23:58Z","pushed_at":"2016-09-16T07:03:26Z","git_url":"git://github.com/furytara/fels_182.git","ssh_url":"git@github.com:furytara/fels_182.git","clone_url":"https://github.com/furytara/fels_182.git","svn_url":"https://github.com/furytara/fels_182","homepage":null,"size":223,"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":"f632ff6db294b09d930ad68560fce649253171c5","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":66999289,"name":"fels_182","full_name":"framgia/fels_182","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/fels_182","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_182","forks_url":"https://api.github.com/repos/framgia/fels_182/forks","keys_url":"https://api.github.com/repos/framgia/fels_182/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_182/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_182/teams","hooks_url":"https://api.github.com/repos/framgia/fels_182/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_182/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_182/events","assignees_url":"https://api.github.com/repos/framgia/fels_182/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_182/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_182/tags","blobs_url":"https://api.github.com/repos/framgia/fels_182/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_182/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_182/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_182/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_182/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_182/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_182/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_182/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_182/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_182/subscription","commits_url":"https://api.github.com/repos/framgia/fels_182/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_182/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_182/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_182/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_182/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_182/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_182/merges","archive_url":"https://api.github.com/repos/framgia/fels_182/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_182/downloads","issues_url":"https://api.github.com/repos/framgia/fels_182/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_182/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_182/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_182/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_182/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_182/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_182/deployments","created_at":"2016-08-31T03:23:58Z","updated_at":"2016-08-31T03:23:58Z","pushed_at":"2016-09-16T07:03:27Z","git_url":"git://github.com/framgia/fels_182.git","ssh_url":"git@github.com:framgia/fels_182.git","clone_url":"https://github.com/framgia/fels_182.git","svn_url":"https://github.com/framgia/fels_182","homepage":null,"size":242,"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/fels_182/pulls/26"},"html":{"href":"https://github.com/framgia/fels_182/pull/26"},"issue":{"href":"https://api.github.com/repos/framgia/fels_182/issues/26"},"comments":{"href":"https://api.github.com/repos/framgia/fels_182/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_182/statuses/854ef43b667e30bfb9e0c09fa66d478b14f16165"}}}}
{"actor":{"display_login":"furytara"}}