{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_182/pulls/comments/78307034","id":78307034,"diff_hunk":"@@ -27,6 +27,12 @@ def digest string\n     def new_token\n       SecureRandom.urlsafe_base64\n     end\n+\n+    def user_params params","path":"app/models/user.rb","position":15,"original_position":15,"commit_id":"c73f90ecded32e5413bb70e4c86780c0acbea7a9","original_commit_id":"c73f90ecded32e5413bb70e4c86780c0acbea7a9","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":"strong params thì em đặt ngoài controller cũng được. Còn theo cách của em thì có thể đặt một hằng số trong model rồi gọi ra trong strong params ở controller.","created_at":"2016-09-12T01:11:58Z","updated_at":"2016-09-12T01:11:58Z","html_url":"https://github.com/framgia/fels_182/pull/16#discussion_r78307034","pull_request_url":"https://api.github.com/repos/framgia/fels_182/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/comments/78307034"},"html":{"href":"https://github.com/framgia/fels_182/pull/16#discussion_r78307034"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_182/pulls/16","id":84577678,"html_url":"https://github.com/framgia/fels_182/pull/16","diff_url":"https://github.com/framgia/fels_182/pull/16.diff","patch_url":"https://github.com/framgia/fels_182/pull/16.patch","issue_url":"https://api.github.com/repos/framgia/fels_182/issues/16","number":16,"state":"open","locked":false,"title":"75761_view_profile","user":{"login":"NguyenHoangAnhDung","id":21093421,"avatar_url":"https://avatars.githubusercontent.com/u/21093421?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHoangAnhDung","html_url":"https://github.com/NguyenHoangAnhDung","followers_url":"https://api.github.com/users/NguyenHoangAnhDung/followers","following_url":"https://api.github.com/users/NguyenHoangAnhDung/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHoangAnhDung/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHoangAnhDung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHoangAnhDung/subscriptions","organizations_url":"https://api.github.com/users/NguyenHoangAnhDung/orgs","repos_url":"https://api.github.com/users/NguyenHoangAnhDung/repos","events_url":"https://api.github.com/users/NguyenHoangAnhDung/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHoangAnhDung/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-09T00:44:49Z","updated_at":"2016-09-12T01:11:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa81b02d51901ad64be3d29c799b2a51df446893","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_182/pulls/16/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_182/pulls/16/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_182/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_182/issues/16/comments","statuses_url":"https://api.github.com/repos/framgia/fels_182/statuses/c73f90ecded32e5413bb70e4c86780c0acbea7a9","head":{"label":"NguyenHoangAnhDung:75761_view_profile","ref":"75761_view_profile","sha":"c73f90ecded32e5413bb70e4c86780c0acbea7a9","user":{"login":"NguyenHoangAnhDung","id":21093421,"avatar_url":"https://avatars.githubusercontent.com/u/21093421?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHoangAnhDung","html_url":"https://github.com/NguyenHoangAnhDung","followers_url":"https://api.github.com/users/NguyenHoangAnhDung/followers","following_url":"https://api.github.com/users/NguyenHoangAnhDung/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHoangAnhDung/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHoangAnhDung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHoangAnhDung/subscriptions","organizations_url":"https://api.github.com/users/NguyenHoangAnhDung/orgs","repos_url":"https://api.github.com/users/NguyenHoangAnhDung/repos","events_url":"https://api.github.com/users/NguyenHoangAnhDung/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHoangAnhDung/received_events","type":"User","site_admin":false},"repo":{"id":67470007,"name":"fels_182","full_name":"NguyenHoangAnhDung/fels_182","owner":{"login":"NguyenHoangAnhDung","id":21093421,"avatar_url":"https://avatars.githubusercontent.com/u/21093421?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenHoangAnhDung","html_url":"https://github.com/NguyenHoangAnhDung","followers_url":"https://api.github.com/users/NguyenHoangAnhDung/followers","following_url":"https://api.github.com/users/NguyenHoangAnhDung/following{/other_user}","gists_url":"https://api.github.com/users/NguyenHoangAnhDung/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenHoangAnhDung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenHoangAnhDung/subscriptions","organizations_url":"https://api.github.com/users/NguyenHoangAnhDung/orgs","repos_url":"https://api.github.com/users/NguyenHoangAnhDung/repos","events_url":"https://api.github.com/users/NguyenHoangAnhDung/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenHoangAnhDung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NguyenHoangAnhDung/fels_182","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182","forks_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/forks","keys_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/teams","hooks_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/hooks","issue_events_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/events","assignees_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/tags","blobs_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/languages","stargazers_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/stargazers","contributors_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/contributors","subscribers_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/subscribers","subscription_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/subscription","commits_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/merges","archive_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/downloads","issues_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/labels{/name}","releases_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenHoangAnhDung/fels_182/deployments","created_at":"2016-09-06T03:26:19Z","updated_at":"2016-08-31T03:23:58Z","pushed_at":"2016-09-09T10:09:47Z","git_url":"git://github.com/NguyenHoangAnhDung/fels_182.git","ssh_url":"git@github.com:NguyenHoangAnhDung/fels_182.git","clone_url":"https://github.com/NguyenHoangAnhDung/fels_182.git","svn_url":"https://github.com/NguyenHoangAnhDung/fels_182","homepage":null,"size":177,"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":"0fac7e85e435032522324a31c42d457ff346d939","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":66999289,"name":"fels_182","full_name":"framgia/fels_182","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_182","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_182","forks_url":"https://api.github.com/repos/framgia/fels_182/forks","keys_url":"https://api.github.com/repos/framgia/fels_182/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_182/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_182/teams","hooks_url":"https://api.github.com/repos/framgia/fels_182/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_182/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_182/events","assignees_url":"https://api.github.com/repos/framgia/fels_182/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_182/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_182/tags","blobs_url":"https://api.github.com/repos/framgia/fels_182/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_182/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_182/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_182/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_182/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_182/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_182/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_182/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_182/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_182/subscription","commits_url":"https://api.github.com/repos/framgia/fels_182/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_182/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_182/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_182/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_182/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_182/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_182/merges","archive_url":"https://api.github.com/repos/framgia/fels_182/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_182/downloads","issues_url":"https://api.github.com/repos/framgia/fels_182/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_182/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_182/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_182/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_182/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_182/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_182/deployments","created_at":"2016-08-31T03:23:58Z","updated_at":"2016-08-31T03:23:58Z","pushed_at":"2016-09-09T10:37:13Z","git_url":"git://github.com/framgia/fels_182.git","ssh_url":"git@github.com:framgia/fels_182.git","clone_url":"https://github.com/framgia/fels_182.git","svn_url":"https://github.com/framgia/fels_182","homepage":null,"size":192,"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_182/pulls/16"},"html":{"href":"https://github.com/framgia/fels_182/pull/16"},"issue":{"href":"https://api.github.com/repos/framgia/fels_182/issues/16"},"comments":{"href":"https://api.github.com/repos/framgia/fels_182/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_182/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_182/statuses/c73f90ecded32e5413bb70e4c86780c0acbea7a9"}}}}
{"actor":{"display_login":"dieunb"}}