{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_32/pulls/comments/25484669","id":25484669,"diff_hunk":"@@ -0,0 +1,52 @@\n+class UsersController < ApplicationController  \n+  before_action :logged_in_user, only:[ :edit, :update, :show]  \n+  before_action :correct_user,   only: [:edit, :update]    \n+  def new    \n+    @user = User.new\n+  end  \n+\n+  def show  \t\n+    @user=User.find params[:id]  \t","path":"app/controllers/users_controller.rb","position":9,"original_position":9,"commit_id":"9c810319de3c8cef95d2d39ec2b53de498f6f3e1","original_commit_id":"9c810319de3c8cef95d2d39ec2b53de498f6f3e1","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?v=3","gravatar_id":"","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"sapce","created_at":"2015-02-27T02:35:01Z","updated_at":"2015-02-27T02:35:01Z","html_url":"https://github.com/framgia/fels_32/pull/8#discussion_r25484669","pull_request_url":"https://api.github.com/repos/framgia/fels_32/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_32/pulls/comments/25484669"},"html":{"href":"https://github.com/framgia/fels_32/pull/8#discussion_r25484669"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_32/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_32/pulls/8","id":30136660,"html_url":"https://github.com/framgia/fels_32/pull/8","diff_url":"https://github.com/framgia/fels_32/pull/8.diff","patch_url":"https://github.com/framgia/fels_32/pull/8.patch","issue_url":"https://api.github.com/repos/framgia/fels_32/issues/8","number":8,"state":"open","locked":false,"title":"Add controller","user":{"login":"thanhdocong","id":9549497,"avatar_url":"https://avatars.githubusercontent.com/u/9549497?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhdocong","html_url":"https://github.com/thanhdocong","followers_url":"https://api.github.com/users/thanhdocong/followers","following_url":"https://api.github.com/users/thanhdocong/following{/other_user}","gists_url":"https://api.github.com/users/thanhdocong/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhdocong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhdocong/subscriptions","organizations_url":"https://api.github.com/users/thanhdocong/orgs","repos_url":"https://api.github.com/users/thanhdocong/repos","events_url":"https://api.github.com/users/thanhdocong/events{/privacy}","received_events_url":"https://api.github.com/users/thanhdocong/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-27T02:20:57Z","updated_at":"2015-02-27T02:35:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34163e8af8d508c6b2b64fabe8d59cd7ae0e7880","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_32/pulls/8/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_32/pulls/8/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_32/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_32/issues/8/comments","statuses_url":"https://api.github.com/repos/framgia/fels_32/statuses/9c810319de3c8cef95d2d39ec2b53de498f6f3e1","head":{"label":"thanhdocong:complete_user_controller","ref":"complete_user_controller","sha":"9c810319de3c8cef95d2d39ec2b53de498f6f3e1","user":{"login":"thanhdocong","id":9549497,"avatar_url":"https://avatars.githubusercontent.com/u/9549497?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhdocong","html_url":"https://github.com/thanhdocong","followers_url":"https://api.github.com/users/thanhdocong/followers","following_url":"https://api.github.com/users/thanhdocong/following{/other_user}","gists_url":"https://api.github.com/users/thanhdocong/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhdocong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhdocong/subscriptions","organizations_url":"https://api.github.com/users/thanhdocong/orgs","repos_url":"https://api.github.com/users/thanhdocong/repos","events_url":"https://api.github.com/users/thanhdocong/events{/privacy}","received_events_url":"https://api.github.com/users/thanhdocong/received_events","type":"User","site_admin":false},"repo":{"id":30062945,"name":"fels_32","full_name":"thanhdocong/fels_32","owner":{"login":"thanhdocong","id":9549497,"avatar_url":"https://avatars.githubusercontent.com/u/9549497?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhdocong","html_url":"https://github.com/thanhdocong","followers_url":"https://api.github.com/users/thanhdocong/followers","following_url":"https://api.github.com/users/thanhdocong/following{/other_user}","gists_url":"https://api.github.com/users/thanhdocong/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhdocong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhdocong/subscriptions","organizations_url":"https://api.github.com/users/thanhdocong/orgs","repos_url":"https://api.github.com/users/thanhdocong/repos","events_url":"https://api.github.com/users/thanhdocong/events{/privacy}","received_events_url":"https://api.github.com/users/thanhdocong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thanhdocong/fels_32","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/thanhdocong/fels_32","forks_url":"https://api.github.com/repos/thanhdocong/fels_32/forks","keys_url":"https://api.github.com/repos/thanhdocong/fels_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thanhdocong/fels_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thanhdocong/fels_32/teams","hooks_url":"https://api.github.com/repos/thanhdocong/fels_32/hooks","issue_events_url":"https://api.github.com/repos/thanhdocong/fels_32/issues/events{/number}","events_url":"https://api.github.com/repos/thanhdocong/fels_32/events","assignees_url":"https://api.github.com/repos/thanhdocong/fels_32/assignees{/user}","branches_url":"https://api.github.com/repos/thanhdocong/fels_32/branches{/branch}","tags_url":"https://api.github.com/repos/thanhdocong/fels_32/tags","blobs_url":"https://api.github.com/repos/thanhdocong/fels_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thanhdocong/fels_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thanhdocong/fels_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/thanhdocong/fels_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thanhdocong/fels_32/statuses/{sha}","languages_url":"https://api.github.com/repos/thanhdocong/fels_32/languages","stargazers_url":"https://api.github.com/repos/thanhdocong/fels_32/stargazers","contributors_url":"https://api.github.com/repos/thanhdocong/fels_32/contributors","subscribers_url":"https://api.github.com/repos/thanhdocong/fels_32/subscribers","subscription_url":"https://api.github.com/repos/thanhdocong/fels_32/subscription","commits_url":"https://api.github.com/repos/thanhdocong/fels_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/thanhdocong/fels_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/thanhdocong/fels_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/thanhdocong/fels_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/thanhdocong/fels_32/contents/{+path}","compare_url":"https://api.github.com/repos/thanhdocong/fels_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thanhdocong/fels_32/merges","archive_url":"https://api.github.com/repos/thanhdocong/fels_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thanhdocong/fels_32/downloads","issues_url":"https://api.github.com/repos/thanhdocong/fels_32/issues{/number}","pulls_url":"https://api.github.com/repos/thanhdocong/fels_32/pulls{/number}","milestones_url":"https://api.github.com/repos/thanhdocong/fels_32/milestones{/number}","notifications_url":"https://api.github.com/repos/thanhdocong/fels_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thanhdocong/fels_32/labels{/name}","releases_url":"https://api.github.com/repos/thanhdocong/fels_32/releases{/id}","created_at":"2015-01-30T08:18:02Z","updated_at":"2015-01-24T12:00:50Z","pushed_at":"2015-02-27T02:20:01Z","git_url":"git://github.com/thanhdocong/fels_32.git","ssh_url":"git@github.com:thanhdocong/fels_32.git","clone_url":"https://github.com/thanhdocong/fels_32.git","svn_url":"https://github.com/thanhdocong/fels_32","homepage":null,"size":202,"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":"6abed0b36840c18952910370dfa57daebd087376","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":29775171,"name":"fels_32","full_name":"framgia/fels_32","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_32","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_32","forks_url":"https://api.github.com/repos/framgia/fels_32/forks","keys_url":"https://api.github.com/repos/framgia/fels_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_32/teams","hooks_url":"https://api.github.com/repos/framgia/fels_32/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_32/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_32/events","assignees_url":"https://api.github.com/repos/framgia/fels_32/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_32/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_32/tags","blobs_url":"https://api.github.com/repos/framgia/fels_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_32/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_32/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_32/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_32/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_32/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_32/subscription","commits_url":"https://api.github.com/repos/framgia/fels_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_32/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_32/merges","archive_url":"https://api.github.com/repos/framgia/fels_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_32/downloads","issues_url":"https://api.github.com/repos/framgia/fels_32/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_32/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_32/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_32/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_32/releases{/id}","created_at":"2015-01-24T12:00:50Z","updated_at":"2015-01-24T12:00:50Z","pushed_at":"2015-02-25T02:33:49Z","git_url":"git://github.com/framgia/fels_32.git","ssh_url":"git@github.com:framgia/fels_32.git","clone_url":"https://github.com/framgia/fels_32.git","svn_url":"https://github.com/framgia/fels_32","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_32/pulls/8"},"html":{"href":"https://github.com/framgia/fels_32/pull/8"},"issue":{"href":"https://api.github.com/repos/framgia/fels_32/issues/8"},"comments":{"href":"https://api.github.com/repos/framgia/fels_32/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_32/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_32/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_32/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_32/statuses/9c810319de3c8cef95d2d39ec2b53de498f6f3e1"}}}}