{"action":"created","comment":{"url":"https://api.github.com/repos/sachmem/els2/pulls/comments/72379494","id":72379494,"diff_hunk":"@@ -18,8 +26,37 @@ def create\n     end\n   end\n \n+  def edit\n+  end\n+\n+  def update\n+    if @user.update_attributes(user_params)\n+      flash[:success] = t(\"user.update_success\")\n+      redirect_to @user\n+    else\n+      render :edit\n+    end\n+  end\n+\n+  def destroy\n+    if @user.destroy\n+      flash[:success] = t(\"user.delete_success\")\n+      redirect_to users_path\n+    else\n+      flash[:danger] = t(\"user.delete_fail\")","path":"app/controllers/users_controller.rb","position":37,"original_position":37,"commit_id":"7cc39844d32d35a3266d92676a296cd5e2c91400","original_commit_id":"7cc39844d32d35a3266d92676a296cd5e2c91400","user":{"login":"nguyenquangminh","id":17470900,"avatar_url":"https://avatars.githubusercontent.com/u/17470900?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenquangminh","html_url":"https://github.com/nguyenquangminh","followers_url":"https://api.github.com/users/nguyenquangminh/followers","following_url":"https://api.github.com/users/nguyenquangminh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenquangminh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenquangminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenquangminh/subscriptions","organizations_url":"https://api.github.com/users/nguyenquangminh/orgs","repos_url":"https://api.github.com/users/nguyenquangminh/repos","events_url":"https://api.github.com/users/nguyenquangminh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenquangminh/received_events","type":"User","site_admin":false},"body":"flash.now chứ nhỉ?","created_at":"2016-07-27T04:30:32Z","updated_at":"2016-07-27T04:30:32Z","html_url":"https://github.com/sachmem/els2/pull/17#discussion_r72379494","pull_request_url":"https://api.github.com/repos/sachmem/els2/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/sachmem/els2/pulls/comments/72379494"},"html":{"href":"https://github.com/sachmem/els2/pull/17#discussion_r72379494"},"pull_request":{"href":"https://api.github.com/repos/sachmem/els2/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/sachmem/els2/pulls/17","id":78793376,"html_url":"https://github.com/sachmem/els2/pull/17","diff_url":"https://github.com/sachmem/els2/pull/17.diff","patch_url":"https://github.com/sachmem/els2/pull/17.patch","issue_url":"https://api.github.com/repos/sachmem/els2/issues/17","number":17,"state":"open","locked":false,"title":"Update user","user":{"login":"thanhdat285","id":17473355,"avatar_url":"https://avatars.githubusercontent.com/u/17473355?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhdat285","html_url":"https://github.com/thanhdat285","followers_url":"https://api.github.com/users/thanhdat285/followers","following_url":"https://api.github.com/users/thanhdat285/following{/other_user}","gists_url":"https://api.github.com/users/thanhdat285/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhdat285/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhdat285/subscriptions","organizations_url":"https://api.github.com/users/thanhdat285/orgs","repos_url":"https://api.github.com/users/thanhdat285/repos","events_url":"https://api.github.com/users/thanhdat285/events{/privacy}","received_events_url":"https://api.github.com/users/thanhdat285/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-26T05:27:04Z","updated_at":"2016-07-27T04:30:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed5ced434a3e3659b68157b45b7ee020933512ca","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sachmem/els2/pulls/17/commits","review_comments_url":"https://api.github.com/repos/sachmem/els2/pulls/17/comments","review_comment_url":"https://api.github.com/repos/sachmem/els2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sachmem/els2/issues/17/comments","statuses_url":"https://api.github.com/repos/sachmem/els2/statuses/7cc39844d32d35a3266d92676a296cd5e2c91400","head":{"label":"thanhdat285:update-user","ref":"update-user","sha":"7cc39844d32d35a3266d92676a296cd5e2c91400","user":{"login":"thanhdat285","id":17473355,"avatar_url":"https://avatars.githubusercontent.com/u/17473355?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhdat285","html_url":"https://github.com/thanhdat285","followers_url":"https://api.github.com/users/thanhdat285/followers","following_url":"https://api.github.com/users/thanhdat285/following{/other_user}","gists_url":"https://api.github.com/users/thanhdat285/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhdat285/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhdat285/subscriptions","organizations_url":"https://api.github.com/users/thanhdat285/orgs","repos_url":"https://api.github.com/users/thanhdat285/repos","events_url":"https://api.github.com/users/thanhdat285/events{/privacy}","received_events_url":"https://api.github.com/users/thanhdat285/received_events","type":"User","site_admin":false},"repo":{"id":63465383,"name":"els2","full_name":"thanhdat285/els2","owner":{"login":"thanhdat285","id":17473355,"avatar_url":"https://avatars.githubusercontent.com/u/17473355?v=3","gravatar_id":"","url":"https://api.github.com/users/thanhdat285","html_url":"https://github.com/thanhdat285","followers_url":"https://api.github.com/users/thanhdat285/followers","following_url":"https://api.github.com/users/thanhdat285/following{/other_user}","gists_url":"https://api.github.com/users/thanhdat285/gists{/gist_id}","starred_url":"https://api.github.com/users/thanhdat285/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thanhdat285/subscriptions","organizations_url":"https://api.github.com/users/thanhdat285/orgs","repos_url":"https://api.github.com/users/thanhdat285/repos","events_url":"https://api.github.com/users/thanhdat285/events{/privacy}","received_events_url":"https://api.github.com/users/thanhdat285/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thanhdat285/els2","description":null,"fork":true,"url":"https://api.github.com/repos/thanhdat285/els2","forks_url":"https://api.github.com/repos/thanhdat285/els2/forks","keys_url":"https://api.github.com/repos/thanhdat285/els2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thanhdat285/els2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thanhdat285/els2/teams","hooks_url":"https://api.github.com/repos/thanhdat285/els2/hooks","issue_events_url":"https://api.github.com/repos/thanhdat285/els2/issues/events{/number}","events_url":"https://api.github.com/repos/thanhdat285/els2/events","assignees_url":"https://api.github.com/repos/thanhdat285/els2/assignees{/user}","branches_url":"https://api.github.com/repos/thanhdat285/els2/branches{/branch}","tags_url":"https://api.github.com/repos/thanhdat285/els2/tags","blobs_url":"https://api.github.com/repos/thanhdat285/els2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thanhdat285/els2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thanhdat285/els2/git/refs{/sha}","trees_url":"https://api.github.com/repos/thanhdat285/els2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thanhdat285/els2/statuses/{sha}","languages_url":"https://api.github.com/repos/thanhdat285/els2/languages","stargazers_url":"https://api.github.com/repos/thanhdat285/els2/stargazers","contributors_url":"https://api.github.com/repos/thanhdat285/els2/contributors","subscribers_url":"https://api.github.com/repos/thanhdat285/els2/subscribers","subscription_url":"https://api.github.com/repos/thanhdat285/els2/subscription","commits_url":"https://api.github.com/repos/thanhdat285/els2/commits{/sha}","git_commits_url":"https://api.github.com/repos/thanhdat285/els2/git/commits{/sha}","comments_url":"https://api.github.com/repos/thanhdat285/els2/comments{/number}","issue_comment_url":"https://api.github.com/repos/thanhdat285/els2/issues/comments{/number}","contents_url":"https://api.github.com/repos/thanhdat285/els2/contents/{+path}","compare_url":"https://api.github.com/repos/thanhdat285/els2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thanhdat285/els2/merges","archive_url":"https://api.github.com/repos/thanhdat285/els2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thanhdat285/els2/downloads","issues_url":"https://api.github.com/repos/thanhdat285/els2/issues{/number}","pulls_url":"https://api.github.com/repos/thanhdat285/els2/pulls{/number}","milestones_url":"https://api.github.com/repos/thanhdat285/els2/milestones{/number}","notifications_url":"https://api.github.com/repos/thanhdat285/els2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thanhdat285/els2/labels{/name}","releases_url":"https://api.github.com/repos/thanhdat285/els2/releases{/id}","deployments_url":"https://api.github.com/repos/thanhdat285/els2/deployments","created_at":"2016-07-16T04:25:46Z","updated_at":"2016-07-16T08:48:49Z","pushed_at":"2016-07-27T04:13:27Z","git_url":"git://github.com/thanhdat285/els2.git","ssh_url":"git@github.com:thanhdat285/els2.git","clone_url":"https://github.com/thanhdat285/els2.git","svn_url":"https://github.com/thanhdat285/els2","homepage":null,"size":39,"stargazers_count":1,"watchers_count":1,"language":"Ruby","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":1,"default_branch":"master"}},"base":{"label":"sachmem:development","ref":"development","sha":"f2c0e31408f06282f8b51ea085b375b37fb90289","user":{"login":"sachmem","id":20066220,"avatar_url":"https://avatars.githubusercontent.com/u/20066220?v=3","gravatar_id":"","url":"https://api.github.com/users/sachmem","html_url":"https://github.com/sachmem","followers_url":"https://api.github.com/users/sachmem/followers","following_url":"https://api.github.com/users/sachmem/following{/other_user}","gists_url":"https://api.github.com/users/sachmem/gists{/gist_id}","starred_url":"https://api.github.com/users/sachmem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachmem/subscriptions","organizations_url":"https://api.github.com/users/sachmem/orgs","repos_url":"https://api.github.com/users/sachmem/repos","events_url":"https://api.github.com/users/sachmem/events{/privacy}","received_events_url":"https://api.github.com/users/sachmem/received_events","type":"Organization","site_admin":false},"repo":{"id":61688338,"name":"els2","full_name":"sachmem/els2","owner":{"login":"sachmem","id":20066220,"avatar_url":"https://avatars.githubusercontent.com/u/20066220?v=3","gravatar_id":"","url":"https://api.github.com/users/sachmem","html_url":"https://github.com/sachmem","followers_url":"https://api.github.com/users/sachmem/followers","following_url":"https://api.github.com/users/sachmem/following{/other_user}","gists_url":"https://api.github.com/users/sachmem/gists{/gist_id}","starred_url":"https://api.github.com/users/sachmem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachmem/subscriptions","organizations_url":"https://api.github.com/users/sachmem/orgs","repos_url":"https://api.github.com/users/sachmem/repos","events_url":"https://api.github.com/users/sachmem/events{/privacy}","received_events_url":"https://api.github.com/users/sachmem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sachmem/els2","description":"","fork":false,"url":"https://api.github.com/repos/sachmem/els2","forks_url":"https://api.github.com/repos/sachmem/els2/forks","keys_url":"https://api.github.com/repos/sachmem/els2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sachmem/els2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sachmem/els2/teams","hooks_url":"https://api.github.com/repos/sachmem/els2/hooks","issue_events_url":"https://api.github.com/repos/sachmem/els2/issues/events{/number}","events_url":"https://api.github.com/repos/sachmem/els2/events","assignees_url":"https://api.github.com/repos/sachmem/els2/assignees{/user}","branches_url":"https://api.github.com/repos/sachmem/els2/branches{/branch}","tags_url":"https://api.github.com/repos/sachmem/els2/tags","blobs_url":"https://api.github.com/repos/sachmem/els2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sachmem/els2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sachmem/els2/git/refs{/sha}","trees_url":"https://api.github.com/repos/sachmem/els2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sachmem/els2/statuses/{sha}","languages_url":"https://api.github.com/repos/sachmem/els2/languages","stargazers_url":"https://api.github.com/repos/sachmem/els2/stargazers","contributors_url":"https://api.github.com/repos/sachmem/els2/contributors","subscribers_url":"https://api.github.com/repos/sachmem/els2/subscribers","subscription_url":"https://api.github.com/repos/sachmem/els2/subscription","commits_url":"https://api.github.com/repos/sachmem/els2/commits{/sha}","git_commits_url":"https://api.github.com/repos/sachmem/els2/git/commits{/sha}","comments_url":"https://api.github.com/repos/sachmem/els2/comments{/number}","issue_comment_url":"https://api.github.com/repos/sachmem/els2/issues/comments{/number}","contents_url":"https://api.github.com/repos/sachmem/els2/contents/{+path}","compare_url":"https://api.github.com/repos/sachmem/els2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sachmem/els2/merges","archive_url":"https://api.github.com/repos/sachmem/els2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sachmem/els2/downloads","issues_url":"https://api.github.com/repos/sachmem/els2/issues{/number}","pulls_url":"https://api.github.com/repos/sachmem/els2/pulls{/number}","milestones_url":"https://api.github.com/repos/sachmem/els2/milestones{/number}","notifications_url":"https://api.github.com/repos/sachmem/els2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sachmem/els2/labels{/name}","releases_url":"https://api.github.com/repos/sachmem/els2/releases{/id}","deployments_url":"https://api.github.com/repos/sachmem/els2/deployments","created_at":"2016-06-22T04:15:30Z","updated_at":"2016-07-15T02:54:22Z","pushed_at":"2016-07-27T04:13:28Z","git_url":"git://github.com/sachmem/els2.git","ssh_url":"git@github.com:sachmem/els2.git","clone_url":"https://github.com/sachmem/els2.git","svn_url":"https://github.com/sachmem/els2","homepage":null,"size":67,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/sachmem/els2/pulls/17"},"html":{"href":"https://github.com/sachmem/els2/pull/17"},"issue":{"href":"https://api.github.com/repos/sachmem/els2/issues/17"},"comments":{"href":"https://api.github.com/repos/sachmem/els2/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/sachmem/els2/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/sachmem/els2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sachmem/els2/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/sachmem/els2/statuses/7cc39844d32d35a3266d92676a296cd5e2c91400"}}}}
{"actor":{"display_login":"nguyenquangminh"}}