{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_190/pulls/comments/81554399","pull_request_review_id":2525434,"id":81554399,"diff_hunk":"@@ -33,4 +54,21 @@ def user_params\n     params.require(:user).permit :name, :email, :password,\n       :password_confirmation\n   end\n+\n+  def logged_in_user\n+    unless logged_in?\n+      store_location\n+      flash[:danger] = t \"please_login\"\n+      redirect_to login_url\n+    end\n+    end\n+\n+  def correct_user\n+    @user = User.find params[:id]","path":"app/controllers/users_controller.rb","position":47,"original_position":47,"commit_id":"ea3403b0535d49d9d03df31bea17c11d77c4ed04","original_commit_id":"ea3403b0535d49d9d03df31bea17c11d77c4ed04","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"Lại tiếp tục truy ván db ở đấy. em đếm xem em vào database mấy lần cho action edit, update","created_at":"2016-10-03T13:54:24Z","updated_at":"2016-10-03T13:54:24Z","html_url":"https://github.com/framgia/fels_190/pull/15#discussion_r81554399","pull_request_url":"https://api.github.com/repos/framgia/fels_190/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_190/pulls/comments/81554399"},"html":{"href":"https://github.com/framgia/fels_190/pull/15#discussion_r81554399"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_190/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_190/pulls/15","id":87713275,"html_url":"https://github.com/framgia/fels_190/pull/15","diff_url":"https://github.com/framgia/fels_190/pull/15.diff","patch_url":"https://github.com/framgia/fels_190/pull/15.patch","issue_url":"https://api.github.com/repos/framgia/fels_190/issues/15","number":15,"state":"open","locked":false,"title":"Show update profile","user":{"login":"HoVietTu","id":22023210,"avatar_url":"https://avatars.githubusercontent.com/u/22023210?v=3","gravatar_id":"","url":"https://api.github.com/users/HoVietTu","html_url":"https://github.com/HoVietTu","followers_url":"https://api.github.com/users/HoVietTu/followers","following_url":"https://api.github.com/users/HoVietTu/following{/other_user}","gists_url":"https://api.github.com/users/HoVietTu/gists{/gist_id}","starred_url":"https://api.github.com/users/HoVietTu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoVietTu/subscriptions","organizations_url":"https://api.github.com/users/HoVietTu/orgs","repos_url":"https://api.github.com/users/HoVietTu/repos","events_url":"https://api.github.com/users/HoVietTu/events{/privacy}","received_events_url":"https://api.github.com/users/HoVietTu/received_events","type":"User","site_admin":false},"body":"Show update profile user","created_at":"2016-10-03T13:08:25Z","updated_at":"2016-10-03T13:55:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c7841a548b26f96e14b50960134ff7ac8ae9aad","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_190/pulls/15/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_190/pulls/15/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_190/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_190/issues/15/comments","statuses_url":"https://api.github.com/repos/framgia/fels_190/statuses/ea3403b0535d49d9d03df31bea17c11d77c4ed04","head":{"label":"HoVietTu:user","ref":"user","sha":"ea3403b0535d49d9d03df31bea17c11d77c4ed04","user":{"login":"HoVietTu","id":22023210,"avatar_url":"https://avatars.githubusercontent.com/u/22023210?v=3","gravatar_id":"","url":"https://api.github.com/users/HoVietTu","html_url":"https://github.com/HoVietTu","followers_url":"https://api.github.com/users/HoVietTu/followers","following_url":"https://api.github.com/users/HoVietTu/following{/other_user}","gists_url":"https://api.github.com/users/HoVietTu/gists{/gist_id}","starred_url":"https://api.github.com/users/HoVietTu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoVietTu/subscriptions","organizations_url":"https://api.github.com/users/HoVietTu/orgs","repos_url":"https://api.github.com/users/HoVietTu/repos","events_url":"https://api.github.com/users/HoVietTu/events{/privacy}","received_events_url":"https://api.github.com/users/HoVietTu/received_events","type":"User","site_admin":false},"repo":{"id":69414546,"name":"fels_190","full_name":"HoVietTu/fels_190","owner":{"login":"HoVietTu","id":22023210,"avatar_url":"https://avatars.githubusercontent.com/u/22023210?v=3","gravatar_id":"","url":"https://api.github.com/users/HoVietTu","html_url":"https://github.com/HoVietTu","followers_url":"https://api.github.com/users/HoVietTu/followers","following_url":"https://api.github.com/users/HoVietTu/following{/other_user}","gists_url":"https://api.github.com/users/HoVietTu/gists{/gist_id}","starred_url":"https://api.github.com/users/HoVietTu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoVietTu/subscriptions","organizations_url":"https://api.github.com/users/HoVietTu/orgs","repos_url":"https://api.github.com/users/HoVietTu/repos","events_url":"https://api.github.com/users/HoVietTu/events{/privacy}","received_events_url":"https://api.github.com/users/HoVietTu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HoVietTu/fels_190","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/HoVietTu/fels_190","forks_url":"https://api.github.com/repos/HoVietTu/fels_190/forks","keys_url":"https://api.github.com/repos/HoVietTu/fels_190/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HoVietTu/fels_190/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HoVietTu/fels_190/teams","hooks_url":"https://api.github.com/repos/HoVietTu/fels_190/hooks","issue_events_url":"https://api.github.com/repos/HoVietTu/fels_190/issues/events{/number}","events_url":"https://api.github.com/repos/HoVietTu/fels_190/events","assignees_url":"https://api.github.com/repos/HoVietTu/fels_190/assignees{/user}","branches_url":"https://api.github.com/repos/HoVietTu/fels_190/branches{/branch}","tags_url":"https://api.github.com/repos/HoVietTu/fels_190/tags","blobs_url":"https://api.github.com/repos/HoVietTu/fels_190/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HoVietTu/fels_190/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HoVietTu/fels_190/git/refs{/sha}","trees_url":"https://api.github.com/repos/HoVietTu/fels_190/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HoVietTu/fels_190/statuses/{sha}","languages_url":"https://api.github.com/repos/HoVietTu/fels_190/languages","stargazers_url":"https://api.github.com/repos/HoVietTu/fels_190/stargazers","contributors_url":"https://api.github.com/repos/HoVietTu/fels_190/contributors","subscribers_url":"https://api.github.com/repos/HoVietTu/fels_190/subscribers","subscription_url":"https://api.github.com/repos/HoVietTu/fels_190/subscription","commits_url":"https://api.github.com/repos/HoVietTu/fels_190/commits{/sha}","git_commits_url":"https://api.github.com/repos/HoVietTu/fels_190/git/commits{/sha}","comments_url":"https://api.github.com/repos/HoVietTu/fels_190/comments{/number}","issue_comment_url":"https://api.github.com/repos/HoVietTu/fels_190/issues/comments{/number}","contents_url":"https://api.github.com/repos/HoVietTu/fels_190/contents/{+path}","compare_url":"https://api.github.com/repos/HoVietTu/fels_190/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HoVietTu/fels_190/merges","archive_url":"https://api.github.com/repos/HoVietTu/fels_190/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HoVietTu/fels_190/downloads","issues_url":"https://api.github.com/repos/HoVietTu/fels_190/issues{/number}","pulls_url":"https://api.github.com/repos/HoVietTu/fels_190/pulls{/number}","milestones_url":"https://api.github.com/repos/HoVietTu/fels_190/milestones{/number}","notifications_url":"https://api.github.com/repos/HoVietTu/fels_190/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HoVietTu/fels_190/labels{/name}","releases_url":"https://api.github.com/repos/HoVietTu/fels_190/releases{/id}","deployments_url":"https://api.github.com/repos/HoVietTu/fels_190/deployments","created_at":"2016-09-28T01:46:29Z","updated_at":"2016-09-27T09:06:34Z","pushed_at":"2016-10-03T13:26:11Z","git_url":"git://github.com/HoVietTu/fels_190.git","ssh_url":"git@github.com:HoVietTu/fels_190.git","clone_url":"https://github.com/HoVietTu/fels_190.git","svn_url":"https://github.com/HoVietTu/fels_190","homepage":null,"size":32,"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":"79972e587ededd6e154dc4ab028d7df57c6a6a35","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":69338802,"name":"fels_190","full_name":"framgia/fels_190","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_190","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_190","forks_url":"https://api.github.com/repos/framgia/fels_190/forks","keys_url":"https://api.github.com/repos/framgia/fels_190/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_190/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_190/teams","hooks_url":"https://api.github.com/repos/framgia/fels_190/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_190/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_190/events","assignees_url":"https://api.github.com/repos/framgia/fels_190/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_190/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_190/tags","blobs_url":"https://api.github.com/repos/framgia/fels_190/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_190/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_190/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_190/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_190/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_190/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_190/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_190/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_190/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_190/subscription","commits_url":"https://api.github.com/repos/framgia/fels_190/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_190/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_190/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_190/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_190/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_190/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_190/merges","archive_url":"https://api.github.com/repos/framgia/fels_190/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_190/downloads","issues_url":"https://api.github.com/repos/framgia/fels_190/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_190/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_190/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_190/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_190/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_190/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_190/deployments","created_at":"2016-09-27T09:06:34Z","updated_at":"2016-09-27T09:06:34Z","pushed_at":"2016-10-03T13:26:12Z","git_url":"git://github.com/framgia/fels_190.git","ssh_url":"git@github.com:framgia/fels_190.git","clone_url":"https://github.com/framgia/fels_190.git","svn_url":"https://github.com/framgia/fels_190","homepage":null,"size":61,"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_190/pulls/15"},"html":{"href":"https://github.com/framgia/fels_190/pull/15"},"issue":{"href":"https://api.github.com/repos/framgia/fels_190/issues/15"},"comments":{"href":"https://api.github.com/repos/framgia/fels_190/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_190/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_190/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_190/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_190/statuses/ea3403b0535d49d9d03df31bea17c11d77c4ed04"}}}}
{"actor":{"display_login":"hellovietnam93"}}