{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_206/pulls/comments/85280047","pull_request_review_id":6003888,"id":85280047,"diff_hunk":"@@ -21,6 +21,20 @@ def create\n     end\n   end\n \n+  def edit\n+    @user = User.find_by id: params[:id]\n+  end\n+\n+  def update\n+    @user = User.find_by id: params[:id]","path":"app/controllers/users_controller.rb","position":9,"original_position":9,"commit_id":"2be4d772b9f0d7f9107a88354c9e7806dd93d5ac","original_commit_id":"2be4d772b9f0d7f9107a88354c9e7806dd93d5ac","user":{"login":"thangtx88","id":18256324,"avatar_url":"https://avatars.githubusercontent.com/u/18256324?v=3","gravatar_id":"","url":"https://api.github.com/users/thangtx88","html_url":"https://github.com/thangtx88","followers_url":"https://api.github.com/users/thangtx88/followers","following_url":"https://api.github.com/users/thangtx88/following{/other_user}","gists_url":"https://api.github.com/users/thangtx88/gists{/gist_id}","starred_url":"https://api.github.com/users/thangtx88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thangtx88/subscriptions","organizations_url":"https://api.github.com/users/thangtx88/orgs","repos_url":"https://api.github.com/users/thangtx88/repos","events_url":"https://api.github.com/users/thangtx88/events{/privacy}","received_events_url":"https://api.github.com/users/thangtx88/received_events","type":"User","site_admin":false},"body":"lặp code","created_at":"2016-10-27T07:33:39Z","updated_at":"2016-10-27T07:33:39Z","html_url":"https://github.com/framgia/fels_206/pull/6#discussion_r85280047","pull_request_url":"https://api.github.com/repos/framgia/fels_206/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_206/pulls/comments/85280047"},"html":{"href":"https://github.com/framgia/fels_206/pull/6#discussion_r85280047"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_206/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_206/pulls/6","id":91146742,"html_url":"https://github.com/framgia/fels_206/pull/6","diff_url":"https://github.com/framgia/fels_206/pull/6.diff","patch_url":"https://github.com/framgia/fels_206/pull/6.patch","issue_url":"https://api.github.com/repos/framgia/fels_206/issues/6","number":6,"state":"open","locked":false,"title":"edit user","user":{"login":"hungnh103","id":22311747,"avatar_url":"https://avatars.githubusercontent.com/u/22311747?v=3","gravatar_id":"","url":"https://api.github.com/users/hungnh103","html_url":"https://github.com/hungnh103","followers_url":"https://api.github.com/users/hungnh103/followers","following_url":"https://api.github.com/users/hungnh103/following{/other_user}","gists_url":"https://api.github.com/users/hungnh103/gists{/gist_id}","starred_url":"https://api.github.com/users/hungnh103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungnh103/subscriptions","organizations_url":"https://api.github.com/users/hungnh103/orgs","repos_url":"https://api.github.com/users/hungnh103/repos","events_url":"https://api.github.com/users/hungnh103/events{/privacy}","received_events_url":"https://api.github.com/users/hungnh103/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-27T07:29:56Z","updated_at":"2016-10-27T07:33:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f78152a07d55c2115b1f038a184914ec88c98ebe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_206/pulls/6/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_206/pulls/6/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_206/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_206/issues/6/comments","statuses_url":"https://api.github.com/repos/framgia/fels_206/statuses/2be4d772b9f0d7f9107a88354c9e7806dd93d5ac","head":{"label":"hungnh103:edit-user","ref":"edit-user","sha":"2be4d772b9f0d7f9107a88354c9e7806dd93d5ac","user":{"login":"hungnh103","id":22311747,"avatar_url":"https://avatars.githubusercontent.com/u/22311747?v=3","gravatar_id":"","url":"https://api.github.com/users/hungnh103","html_url":"https://github.com/hungnh103","followers_url":"https://api.github.com/users/hungnh103/followers","following_url":"https://api.github.com/users/hungnh103/following{/other_user}","gists_url":"https://api.github.com/users/hungnh103/gists{/gist_id}","starred_url":"https://api.github.com/users/hungnh103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungnh103/subscriptions","organizations_url":"https://api.github.com/users/hungnh103/orgs","repos_url":"https://api.github.com/users/hungnh103/repos","events_url":"https://api.github.com/users/hungnh103/events{/privacy}","received_events_url":"https://api.github.com/users/hungnh103/received_events","type":"User","site_admin":false},"repo":{"id":71866641,"name":"fels_206","full_name":"hungnh103/fels_206","owner":{"login":"hungnh103","id":22311747,"avatar_url":"https://avatars.githubusercontent.com/u/22311747?v=3","gravatar_id":"","url":"https://api.github.com/users/hungnh103","html_url":"https://github.com/hungnh103","followers_url":"https://api.github.com/users/hungnh103/followers","following_url":"https://api.github.com/users/hungnh103/following{/other_user}","gists_url":"https://api.github.com/users/hungnh103/gists{/gist_id}","starred_url":"https://api.github.com/users/hungnh103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungnh103/subscriptions","organizations_url":"https://api.github.com/users/hungnh103/orgs","repos_url":"https://api.github.com/users/hungnh103/repos","events_url":"https://api.github.com/users/hungnh103/events{/privacy}","received_events_url":"https://api.github.com/users/hungnh103/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hungnh103/fels_206","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/hungnh103/fels_206","forks_url":"https://api.github.com/repos/hungnh103/fels_206/forks","keys_url":"https://api.github.com/repos/hungnh103/fels_206/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hungnh103/fels_206/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hungnh103/fels_206/teams","hooks_url":"https://api.github.com/repos/hungnh103/fels_206/hooks","issue_events_url":"https://api.github.com/repos/hungnh103/fels_206/issues/events{/number}","events_url":"https://api.github.com/repos/hungnh103/fels_206/events","assignees_url":"https://api.github.com/repos/hungnh103/fels_206/assignees{/user}","branches_url":"https://api.github.com/repos/hungnh103/fels_206/branches{/branch}","tags_url":"https://api.github.com/repos/hungnh103/fels_206/tags","blobs_url":"https://api.github.com/repos/hungnh103/fels_206/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hungnh103/fels_206/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hungnh103/fels_206/git/refs{/sha}","trees_url":"https://api.github.com/repos/hungnh103/fels_206/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hungnh103/fels_206/statuses/{sha}","languages_url":"https://api.github.com/repos/hungnh103/fels_206/languages","stargazers_url":"https://api.github.com/repos/hungnh103/fels_206/stargazers","contributors_url":"https://api.github.com/repos/hungnh103/fels_206/contributors","subscribers_url":"https://api.github.com/repos/hungnh103/fels_206/subscribers","subscription_url":"https://api.github.com/repos/hungnh103/fels_206/subscription","commits_url":"https://api.github.com/repos/hungnh103/fels_206/commits{/sha}","git_commits_url":"https://api.github.com/repos/hungnh103/fels_206/git/commits{/sha}","comments_url":"https://api.github.com/repos/hungnh103/fels_206/comments{/number}","issue_comment_url":"https://api.github.com/repos/hungnh103/fels_206/issues/comments{/number}","contents_url":"https://api.github.com/repos/hungnh103/fels_206/contents/{+path}","compare_url":"https://api.github.com/repos/hungnh103/fels_206/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hungnh103/fels_206/merges","archive_url":"https://api.github.com/repos/hungnh103/fels_206/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hungnh103/fels_206/downloads","issues_url":"https://api.github.com/repos/hungnh103/fels_206/issues{/number}","pulls_url":"https://api.github.com/repos/hungnh103/fels_206/pulls{/number}","milestones_url":"https://api.github.com/repos/hungnh103/fels_206/milestones{/number}","notifications_url":"https://api.github.com/repos/hungnh103/fels_206/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hungnh103/fels_206/labels{/name}","releases_url":"https://api.github.com/repos/hungnh103/fels_206/releases{/id}","deployments_url":"https://api.github.com/repos/hungnh103/fels_206/deployments","created_at":"2016-10-25T06:32:32Z","updated_at":"2016-10-21T07:29:58Z","pushed_at":"2016-10-27T07:29:22Z","git_url":"git://github.com/hungnh103/fels_206.git","ssh_url":"git@github.com:hungnh103/fels_206.git","clone_url":"https://github.com/hungnh103/fels_206.git","svn_url":"https://github.com/hungnh103/fels_206","homepage":null,"size":46,"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":"a0efd674a878ae94494ebb46e9984ea7c76af5ff","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":71540957,"name":"fels_206","full_name":"framgia/fels_206","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_206","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_206","forks_url":"https://api.github.com/repos/framgia/fels_206/forks","keys_url":"https://api.github.com/repos/framgia/fels_206/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_206/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_206/teams","hooks_url":"https://api.github.com/repos/framgia/fels_206/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_206/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_206/events","assignees_url":"https://api.github.com/repos/framgia/fels_206/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_206/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_206/tags","blobs_url":"https://api.github.com/repos/framgia/fels_206/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_206/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_206/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_206/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_206/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_206/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_206/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_206/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_206/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_206/subscription","commits_url":"https://api.github.com/repos/framgia/fels_206/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_206/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_206/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_206/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_206/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_206/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_206/merges","archive_url":"https://api.github.com/repos/framgia/fels_206/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_206/downloads","issues_url":"https://api.github.com/repos/framgia/fels_206/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_206/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_206/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_206/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_206/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_206/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_206/deployments","created_at":"2016-10-21T07:29:58Z","updated_at":"2016-10-21T07:29:58Z","pushed_at":"2016-10-27T07:29:56Z","git_url":"git://github.com/framgia/fels_206.git","ssh_url":"git@github.com:framgia/fels_206.git","clone_url":"https://github.com/framgia/fels_206.git","svn_url":"https://github.com/framgia/fels_206","homepage":null,"size":46,"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":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_206/pulls/6"},"html":{"href":"https://github.com/framgia/fels_206/pull/6"},"issue":{"href":"https://api.github.com/repos/framgia/fels_206/issues/6"},"comments":{"href":"https://api.github.com/repos/framgia/fels_206/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_206/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_206/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_206/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_206/statuses/2be4d772b9f0d7f9107a88354c9e7806dd93d5ac"}}}}
{"actor":{"display_login":"thangtx88"}}