{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_86/pulls/comments/43995617","id":43995617,"diff_hunk":"@@ -0,0 +1,49 @@\n+class UsersController < ApplicationController\n+  def index\n+    @users = User.paginate(page: params[:page])\n+  end\n+  \n+  def show     \n+    if params.has_key?(:id)\n+      @user = User.find(params[:id])\n+      @activities = @user.activities.paginate(page: params[:page])\n+    else\n+      redirect_to new_user_path\n+    end\n+  end\n+  \n+  def new\n+    @user = User.new\n+  end\n+  \n+  def create\n+    @user = User.new(user_params)\n+    @user.active = true\n+    @user.rank = User.count + 1","path":"app/controllers/users_controller.rb","position":22,"original_position":22,"commit_id":"fd41c06f71b1d94f7a5c0e0e710adf8ee64e027a","original_commit_id":"fd41c06f71b1d94f7a5c0e0e710adf8ee64e027a","user":{"login":"abdullahallmehedi","id":8770038,"avatar_url":"https://avatars.githubusercontent.com/u/8770038?v=3","gravatar_id":"","url":"https://api.github.com/users/abdullahallmehedi","html_url":"https://github.com/abdullahallmehedi","followers_url":"https://api.github.com/users/abdullahallmehedi/followers","following_url":"https://api.github.com/users/abdullahallmehedi/following{/other_user}","gists_url":"https://api.github.com/users/abdullahallmehedi/gists{/gist_id}","starred_url":"https://api.github.com/users/abdullahallmehedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdullahallmehedi/subscriptions","organizations_url":"https://api.github.com/users/abdullahallmehedi/orgs","repos_url":"https://api.github.com/users/abdullahallmehedi/repos","events_url":"https://api.github.com/users/abdullahallmehedi/events{/privacy}","received_events_url":"https://api.github.com/users/abdullahallmehedi/received_events","type":"User","site_admin":false},"body":"As per your requirement:\r\n[Framgia E-Learning System]\r\n【Home】\r\nUser\r\n- can see his summary (follow, the number of words his memorised, ranking, etc.)\r\n","created_at":"2015-11-05T10:16:46Z","updated_at":"2015-11-05T10:16:46Z","html_url":"https://github.com/framgia/fels_86/pull/2#discussion_r43995617","pull_request_url":"https://api.github.com/repos/framgia/fels_86/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_86/pulls/comments/43995617"},"html":{"href":"https://github.com/framgia/fels_86/pull/2#discussion_r43995617"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_86/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_86/pulls/2","id":49802809,"html_url":"https://github.com/framgia/fels_86/pull/2","diff_url":"https://github.com/framgia/fels_86/pull/2.diff","patch_url":"https://github.com/framgia/fels_86/pull/2.patch","issue_url":"https://api.github.com/repos/framgia/fels_86/issues/2","number":2,"state":"open","locked":false,"title":"Sign Up","user":{"login":"abdullahallmehedi","id":8770038,"avatar_url":"https://avatars.githubusercontent.com/u/8770038?v=3","gravatar_id":"","url":"https://api.github.com/users/abdullahallmehedi","html_url":"https://github.com/abdullahallmehedi","followers_url":"https://api.github.com/users/abdullahallmehedi/followers","following_url":"https://api.github.com/users/abdullahallmehedi/following{/other_user}","gists_url":"https://api.github.com/users/abdullahallmehedi/gists{/gist_id}","starred_url":"https://api.github.com/users/abdullahallmehedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdullahallmehedi/subscriptions","organizations_url":"https://api.github.com/users/abdullahallmehedi/orgs","repos_url":"https://api.github.com/users/abdullahallmehedi/repos","events_url":"https://api.github.com/users/abdullahallmehedi/events{/privacy}","received_events_url":"https://api.github.com/users/abdullahallmehedi/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-05T10:00:00Z","updated_at":"2015-11-05T10:16:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cecdd9f333afb792fbe407ece44ce2fe960303b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_86/pulls/2/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_86/pulls/2/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_86/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_86/issues/2/comments","statuses_url":"https://api.github.com/repos/framgia/fels_86/statuses/fd41c06f71b1d94f7a5c0e0e710adf8ee64e027a","head":{"label":"abdullahallmehedi:44224_sign_up","ref":"44224_sign_up","sha":"fd41c06f71b1d94f7a5c0e0e710adf8ee64e027a","user":{"login":"abdullahallmehedi","id":8770038,"avatar_url":"https://avatars.githubusercontent.com/u/8770038?v=3","gravatar_id":"","url":"https://api.github.com/users/abdullahallmehedi","html_url":"https://github.com/abdullahallmehedi","followers_url":"https://api.github.com/users/abdullahallmehedi/followers","following_url":"https://api.github.com/users/abdullahallmehedi/following{/other_user}","gists_url":"https://api.github.com/users/abdullahallmehedi/gists{/gist_id}","starred_url":"https://api.github.com/users/abdullahallmehedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdullahallmehedi/subscriptions","organizations_url":"https://api.github.com/users/abdullahallmehedi/orgs","repos_url":"https://api.github.com/users/abdullahallmehedi/repos","events_url":"https://api.github.com/users/abdullahallmehedi/events{/privacy}","received_events_url":"https://api.github.com/users/abdullahallmehedi/received_events","type":"User","site_admin":false},"repo":{"id":45458950,"name":"fels_86","full_name":"abdullahallmehedi/fels_86","owner":{"login":"abdullahallmehedi","id":8770038,"avatar_url":"https://avatars.githubusercontent.com/u/8770038?v=3","gravatar_id":"","url":"https://api.github.com/users/abdullahallmehedi","html_url":"https://github.com/abdullahallmehedi","followers_url":"https://api.github.com/users/abdullahallmehedi/followers","following_url":"https://api.github.com/users/abdullahallmehedi/following{/other_user}","gists_url":"https://api.github.com/users/abdullahallmehedi/gists{/gist_id}","starred_url":"https://api.github.com/users/abdullahallmehedi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abdullahallmehedi/subscriptions","organizations_url":"https://api.github.com/users/abdullahallmehedi/orgs","repos_url":"https://api.github.com/users/abdullahallmehedi/repos","events_url":"https://api.github.com/users/abdullahallmehedi/events{/privacy}","received_events_url":"https://api.github.com/users/abdullahallmehedi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abdullahallmehedi/fels_86","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/abdullahallmehedi/fels_86","forks_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/forks","keys_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/teams","hooks_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/hooks","issue_events_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/issues/events{/number}","events_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/events","assignees_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/assignees{/user}","branches_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/branches{/branch}","tags_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/tags","blobs_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/git/refs{/sha}","trees_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/statuses/{sha}","languages_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/languages","stargazers_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/stargazers","contributors_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/contributors","subscribers_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/subscribers","subscription_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/subscription","commits_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/commits{/sha}","git_commits_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/git/commits{/sha}","comments_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/comments{/number}","issue_comment_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/issues/comments{/number}","contents_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/contents/{+path}","compare_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/merges","archive_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/downloads","issues_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/issues{/number}","pulls_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/pulls{/number}","milestones_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/milestones{/number}","notifications_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/labels{/name}","releases_url":"https://api.github.com/repos/abdullahallmehedi/fels_86/releases{/id}","created_at":"2015-11-03T10:25:03Z","updated_at":"2015-11-02T09:21:59Z","pushed_at":"2015-11-05T09:59:10Z","git_url":"git://github.com/abdullahallmehedi/fels_86.git","ssh_url":"git@github.com:abdullahallmehedi/fels_86.git","clone_url":"https://github.com/abdullahallmehedi/fels_86.git","svn_url":"https://github.com/abdullahallmehedi/fels_86","homepage":null,"size":0,"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":"176556bf6f34ef326105f70fe90c6b56026d5068","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":45384402,"name":"fels_86","full_name":"framgia/fels_86","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_86","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_86","forks_url":"https://api.github.com/repos/framgia/fels_86/forks","keys_url":"https://api.github.com/repos/framgia/fels_86/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_86/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_86/teams","hooks_url":"https://api.github.com/repos/framgia/fels_86/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_86/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_86/events","assignees_url":"https://api.github.com/repos/framgia/fels_86/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_86/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_86/tags","blobs_url":"https://api.github.com/repos/framgia/fels_86/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_86/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_86/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_86/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_86/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_86/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_86/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_86/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_86/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_86/subscription","commits_url":"https://api.github.com/repos/framgia/fels_86/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_86/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_86/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_86/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_86/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_86/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_86/merges","archive_url":"https://api.github.com/repos/framgia/fels_86/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_86/downloads","issues_url":"https://api.github.com/repos/framgia/fels_86/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_86/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_86/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_86/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_86/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_86/releases{/id}","created_at":"2015-11-02T09:21:59Z","updated_at":"2015-11-02T09:21:59Z","pushed_at":"2015-11-05T10:00:00Z","git_url":"git://github.com/framgia/fels_86.git","ssh_url":"git@github.com:framgia/fels_86.git","clone_url":"https://github.com/framgia/fels_86.git","svn_url":"https://github.com/framgia/fels_86","homepage":null,"size":0,"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":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_86/pulls/2"},"html":{"href":"https://github.com/framgia/fels_86/pull/2"},"issue":{"href":"https://api.github.com/repos/framgia/fels_86/issues/2"},"comments":{"href":"https://api.github.com/repos/framgia/fels_86/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_86/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_86/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_86/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_86/statuses/fd41c06f71b1d94f7a5c0e0e710adf8ee64e027a"}}}}