{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_162/pulls/comments/71298975","id":71298975,"diff_hunk":"@@ -10,8 +10,20 @@ def correct_user\n   def logged_in_user\n     unless logged_in?\n       store_location\n-      flash[:danger] = t \"controller.user_controller.danger\"\n+      flash[:danger] = t \"view.login_success\"\n       redirect_to login_url\n     end\n   end\n+\n+  def load_user\n+    @user = User.find_by id: params[:id]","path":"app/controllers/application_controller.rb","position":11,"original_position":11,"commit_id":"b9f98119555928941977a9b1db94a1acbbfcc2a0","original_commit_id":"21f04d891b43de1056fdfe028273b2fc200309b5","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"Em cho anh biết sự khác nhau giữa việc để trong helper và để trong controller của hàm này nhé ","created_at":"2016-07-19T09:07:08Z","updated_at":"2016-07-19T09:07:08Z","html_url":"https://github.com/framgia/fels_162/pull/12#discussion_r71298975","pull_request_url":"https://api.github.com/repos/framgia/fels_162/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_162/pulls/comments/71298975"},"html":{"href":"https://github.com/framgia/fels_162/pull/12#discussion_r71298975"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_162/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_162/pulls/12","id":77929334,"html_url":"https://github.com/framgia/fels_162/pull/12","diff_url":"https://github.com/framgia/fels_162/pull/12.diff","patch_url":"https://github.com/framgia/fels_162/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/fels_162/issues/12","number":12,"state":"open","locked":false,"title":"Admin","user":{"login":"letuanh8219933","id":19956431,"avatar_url":"https://avatars.githubusercontent.com/u/19956431?v=3","gravatar_id":"","url":"https://api.github.com/users/letuanh8219933","html_url":"https://github.com/letuanh8219933","followers_url":"https://api.github.com/users/letuanh8219933/followers","following_url":"https://api.github.com/users/letuanh8219933/following{/other_user}","gists_url":"https://api.github.com/users/letuanh8219933/gists{/gist_id}","starred_url":"https://api.github.com/users/letuanh8219933/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letuanh8219933/subscriptions","organizations_url":"https://api.github.com/users/letuanh8219933/orgs","repos_url":"https://api.github.com/users/letuanh8219933/repos","events_url":"https://api.github.com/users/letuanh8219933/events{/privacy}","received_events_url":"https://api.github.com/users/letuanh8219933/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-19T07:27:35Z","updated_at":"2016-07-19T09:07:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"144fd146d100449d98095d169e8df4a2731d25a5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_162/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_162/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_162/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_162/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/fels_162/statuses/b9f98119555928941977a9b1db94a1acbbfcc2a0","head":{"label":"letuanh8219933:Namespace_admin","ref":"Namespace_admin","sha":"b9f98119555928941977a9b1db94a1acbbfcc2a0","user":{"login":"letuanh8219933","id":19956431,"avatar_url":"https://avatars.githubusercontent.com/u/19956431?v=3","gravatar_id":"","url":"https://api.github.com/users/letuanh8219933","html_url":"https://github.com/letuanh8219933","followers_url":"https://api.github.com/users/letuanh8219933/followers","following_url":"https://api.github.com/users/letuanh8219933/following{/other_user}","gists_url":"https://api.github.com/users/letuanh8219933/gists{/gist_id}","starred_url":"https://api.github.com/users/letuanh8219933/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letuanh8219933/subscriptions","organizations_url":"https://api.github.com/users/letuanh8219933/orgs","repos_url":"https://api.github.com/users/letuanh8219933/repos","events_url":"https://api.github.com/users/letuanh8219933/events{/privacy}","received_events_url":"https://api.github.com/users/letuanh8219933/received_events","type":"User","site_admin":false},"repo":{"id":62373222,"name":"fels_162","full_name":"letuanh8219933/fels_162","owner":{"login":"letuanh8219933","id":19956431,"avatar_url":"https://avatars.githubusercontent.com/u/19956431?v=3","gravatar_id":"","url":"https://api.github.com/users/letuanh8219933","html_url":"https://github.com/letuanh8219933","followers_url":"https://api.github.com/users/letuanh8219933/followers","following_url":"https://api.github.com/users/letuanh8219933/following{/other_user}","gists_url":"https://api.github.com/users/letuanh8219933/gists{/gist_id}","starred_url":"https://api.github.com/users/letuanh8219933/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/letuanh8219933/subscriptions","organizations_url":"https://api.github.com/users/letuanh8219933/orgs","repos_url":"https://api.github.com/users/letuanh8219933/repos","events_url":"https://api.github.com/users/letuanh8219933/events{/privacy}","received_events_url":"https://api.github.com/users/letuanh8219933/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/letuanh8219933/fels_162","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/letuanh8219933/fels_162","forks_url":"https://api.github.com/repos/letuanh8219933/fels_162/forks","keys_url":"https://api.github.com/repos/letuanh8219933/fels_162/keys{/key_id}","collaborators_url":"https://api.github.com/repos/letuanh8219933/fels_162/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/letuanh8219933/fels_162/teams","hooks_url":"https://api.github.com/repos/letuanh8219933/fels_162/hooks","issue_events_url":"https://api.github.com/repos/letuanh8219933/fels_162/issues/events{/number}","events_url":"https://api.github.com/repos/letuanh8219933/fels_162/events","assignees_url":"https://api.github.com/repos/letuanh8219933/fels_162/assignees{/user}","branches_url":"https://api.github.com/repos/letuanh8219933/fels_162/branches{/branch}","tags_url":"https://api.github.com/repos/letuanh8219933/fels_162/tags","blobs_url":"https://api.github.com/repos/letuanh8219933/fels_162/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/letuanh8219933/fels_162/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/letuanh8219933/fels_162/git/refs{/sha}","trees_url":"https://api.github.com/repos/letuanh8219933/fels_162/git/trees{/sha}","statuses_url":"https://api.github.com/repos/letuanh8219933/fels_162/statuses/{sha}","languages_url":"https://api.github.com/repos/letuanh8219933/fels_162/languages","stargazers_url":"https://api.github.com/repos/letuanh8219933/fels_162/stargazers","contributors_url":"https://api.github.com/repos/letuanh8219933/fels_162/contributors","subscribers_url":"https://api.github.com/repos/letuanh8219933/fels_162/subscribers","subscription_url":"https://api.github.com/repos/letuanh8219933/fels_162/subscription","commits_url":"https://api.github.com/repos/letuanh8219933/fels_162/commits{/sha}","git_commits_url":"https://api.github.com/repos/letuanh8219933/fels_162/git/commits{/sha}","comments_url":"https://api.github.com/repos/letuanh8219933/fels_162/comments{/number}","issue_comment_url":"https://api.github.com/repos/letuanh8219933/fels_162/issues/comments{/number}","contents_url":"https://api.github.com/repos/letuanh8219933/fels_162/contents/{+path}","compare_url":"https://api.github.com/repos/letuanh8219933/fels_162/compare/{base}...{head}","merges_url":"https://api.github.com/repos/letuanh8219933/fels_162/merges","archive_url":"https://api.github.com/repos/letuanh8219933/fels_162/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/letuanh8219933/fels_162/downloads","issues_url":"https://api.github.com/repos/letuanh8219933/fels_162/issues{/number}","pulls_url":"https://api.github.com/repos/letuanh8219933/fels_162/pulls{/number}","milestones_url":"https://api.github.com/repos/letuanh8219933/fels_162/milestones{/number}","notifications_url":"https://api.github.com/repos/letuanh8219933/fels_162/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/letuanh8219933/fels_162/labels{/name}","releases_url":"https://api.github.com/repos/letuanh8219933/fels_162/releases{/id}","deployments_url":"https://api.github.com/repos/letuanh8219933/fels_162/deployments","created_at":"2016-07-01T07:21:48Z","updated_at":"2016-07-01T07:22:59Z","pushed_at":"2016-07-19T09:03:12Z","git_url":"git://github.com/letuanh8219933/fels_162.git","ssh_url":"git@github.com:letuanh8219933/fels_162.git","clone_url":"https://github.com/letuanh8219933/fels_162.git","svn_url":"https://github.com/letuanh8219933/fels_162","homepage":null,"size":60,"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":"5c35186276e237d762e321d4ebfbd4b3b3ef7019","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":62270891,"name":"fels_162","full_name":"framgia/fels_162","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_162","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_162","forks_url":"https://api.github.com/repos/framgia/fels_162/forks","keys_url":"https://api.github.com/repos/framgia/fels_162/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_162/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_162/teams","hooks_url":"https://api.github.com/repos/framgia/fels_162/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_162/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_162/events","assignees_url":"https://api.github.com/repos/framgia/fels_162/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_162/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_162/tags","blobs_url":"https://api.github.com/repos/framgia/fels_162/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_162/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_162/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_162/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_162/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_162/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_162/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_162/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_162/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_162/subscription","commits_url":"https://api.github.com/repos/framgia/fels_162/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_162/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_162/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_162/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_162/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_162/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_162/merges","archive_url":"https://api.github.com/repos/framgia/fels_162/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_162/downloads","issues_url":"https://api.github.com/repos/framgia/fels_162/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_162/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_162/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_162/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_162/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_162/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_162/deployments","created_at":"2016-06-30T01:55:18Z","updated_at":"2016-07-13T05:35:50Z","pushed_at":"2016-07-19T09:03:13Z","git_url":"git://github.com/framgia/fels_162.git","ssh_url":"git@github.com:framgia/fels_162.git","clone_url":"https://github.com/framgia/fels_162.git","svn_url":"https://github.com/framgia/fels_162","homepage":null,"size":365,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_162/pulls/12"},"html":{"href":"https://github.com/framgia/fels_162/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/fels_162/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/fels_162/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_162/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_162/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_162/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_162/statuses/b9f98119555928941977a9b1db94a1acbbfcc2a0"}}}}
{"actor":{"display_login":"dieunb"}}