{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_32/pulls/comments/76557320","id":76557320,"diff_hunk":"@@ -0,0 +1,17 @@\n+class UsersController < ApplicationController\n+  before_action :authenticate_user!, :load_user\n+\n+  def index\n+  end\n+\n+  private\n+  def user_params\n+    params.require(:user).permit :name, :email, :password,\n+      :password_confirmation\n+  end\n+\n+  def load_user\n+    @users = User.search(params[:search]).page(params[:page])\n+      .per_page_kaminari(1)","path":"app/controllers/users_controller.rb","position":15,"original_position":15,"commit_id":"38d4cc08889f09bf2fccf8fa34729fa54da1332c","original_commit_id":"8379db7c15b056df76bd4021cf990b1adbddfd67","user":{"login":"tranducquoc","id":17246945,"avatar_url":"https://avatars.githubusercontent.com/u/17246945?v=3","gravatar_id":"","url":"https://api.github.com/users/tranducquoc","html_url":"https://github.com/tranducquoc","followers_url":"https://api.github.com/users/tranducquoc/followers","following_url":"https://api.github.com/users/tranducquoc/following{/other_user}","gists_url":"https://api.github.com/users/tranducquoc/gists{/gist_id}","starred_url":"https://api.github.com/users/tranducquoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranducquoc/subscriptions","organizations_url":"https://api.github.com/users/tranducquoc/orgs","repos_url":"https://api.github.com/users/tranducquoc/repos","events_url":"https://api.github.com/users/tranducquoc/events{/privacy}","received_events_url":"https://api.github.com/users/tranducquoc/received_events","type":"User","site_admin":false},"body":"dạ, em để  @users = User.search(params[:search]).page params[:page], per_page: Settings.per_page\r\n\r\nthì bị lỗi nên em em dùng như trên ạ. hay là em viết sai? nhờ anh chỉ cho em ạ?","created_at":"2016-08-29T06:14:30Z","updated_at":"2016-08-29T06:14:30Z","html_url":"https://github.com/framgia/brs_32/pull/5#discussion_r76557320","pull_request_url":"https://api.github.com/repos/framgia/brs_32/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/comments/76557320"},"html":{"href":"https://github.com/framgia/brs_32/pull/5#discussion_r76557320"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_32/pulls/5","id":83039811,"html_url":"https://github.com/framgia/brs_32/pull/5","diff_url":"https://github.com/framgia/brs_32/pull/5.diff","patch_url":"https://github.com/framgia/brs_32/pull/5.patch","issue_url":"https://api.github.com/repos/framgia/brs_32/issues/5","number":5,"state":"open","locked":false,"title":"index-uers","user":{"login":"tranducquoc","id":17246945,"avatar_url":"https://avatars.githubusercontent.com/u/17246945?v=3","gravatar_id":"","url":"https://api.github.com/users/tranducquoc","html_url":"https://github.com/tranducquoc","followers_url":"https://api.github.com/users/tranducquoc/followers","following_url":"https://api.github.com/users/tranducquoc/following{/other_user}","gists_url":"https://api.github.com/users/tranducquoc/gists{/gist_id}","starred_url":"https://api.github.com/users/tranducquoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranducquoc/subscriptions","organizations_url":"https://api.github.com/users/tranducquoc/orgs","repos_url":"https://api.github.com/users/tranducquoc/repos","events_url":"https://api.github.com/users/tranducquoc/events{/privacy}","received_events_url":"https://api.github.com/users/tranducquoc/received_events","type":"User","site_admin":false},"body":"Xem giúp em với ạ","created_at":"2016-08-29T03:19:36Z","updated_at":"2016-08-29T06:14:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77cd2888032962e605d424a2503eff3002703af2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_32/pulls/5/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_32/pulls/5/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_32/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_32/issues/5/comments","statuses_url":"https://api.github.com/repos/framgia/brs_32/statuses/38d4cc08889f09bf2fccf8fa34729fa54da1332c","head":{"label":"tranducquoc:74563-index-users","ref":"74563-index-users","sha":"38d4cc08889f09bf2fccf8fa34729fa54da1332c","user":{"login":"tranducquoc","id":17246945,"avatar_url":"https://avatars.githubusercontent.com/u/17246945?v=3","gravatar_id":"","url":"https://api.github.com/users/tranducquoc","html_url":"https://github.com/tranducquoc","followers_url":"https://api.github.com/users/tranducquoc/followers","following_url":"https://api.github.com/users/tranducquoc/following{/other_user}","gists_url":"https://api.github.com/users/tranducquoc/gists{/gist_id}","starred_url":"https://api.github.com/users/tranducquoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranducquoc/subscriptions","organizations_url":"https://api.github.com/users/tranducquoc/orgs","repos_url":"https://api.github.com/users/tranducquoc/repos","events_url":"https://api.github.com/users/tranducquoc/events{/privacy}","received_events_url":"https://api.github.com/users/tranducquoc/received_events","type":"User","site_admin":false},"repo":{"id":66622142,"name":"brs_32","full_name":"tranducquoc/brs_32","owner":{"login":"tranducquoc","id":17246945,"avatar_url":"https://avatars.githubusercontent.com/u/17246945?v=3","gravatar_id":"","url":"https://api.github.com/users/tranducquoc","html_url":"https://github.com/tranducquoc","followers_url":"https://api.github.com/users/tranducquoc/followers","following_url":"https://api.github.com/users/tranducquoc/following{/other_user}","gists_url":"https://api.github.com/users/tranducquoc/gists{/gist_id}","starred_url":"https://api.github.com/users/tranducquoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tranducquoc/subscriptions","organizations_url":"https://api.github.com/users/tranducquoc/orgs","repos_url":"https://api.github.com/users/tranducquoc/repos","events_url":"https://api.github.com/users/tranducquoc/events{/privacy}","received_events_url":"https://api.github.com/users/tranducquoc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tranducquoc/brs_32","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/tranducquoc/brs_32","forks_url":"https://api.github.com/repos/tranducquoc/brs_32/forks","keys_url":"https://api.github.com/repos/tranducquoc/brs_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tranducquoc/brs_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tranducquoc/brs_32/teams","hooks_url":"https://api.github.com/repos/tranducquoc/brs_32/hooks","issue_events_url":"https://api.github.com/repos/tranducquoc/brs_32/issues/events{/number}","events_url":"https://api.github.com/repos/tranducquoc/brs_32/events","assignees_url":"https://api.github.com/repos/tranducquoc/brs_32/assignees{/user}","branches_url":"https://api.github.com/repos/tranducquoc/brs_32/branches{/branch}","tags_url":"https://api.github.com/repos/tranducquoc/brs_32/tags","blobs_url":"https://api.github.com/repos/tranducquoc/brs_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tranducquoc/brs_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tranducquoc/brs_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/tranducquoc/brs_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tranducquoc/brs_32/statuses/{sha}","languages_url":"https://api.github.com/repos/tranducquoc/brs_32/languages","stargazers_url":"https://api.github.com/repos/tranducquoc/brs_32/stargazers","contributors_url":"https://api.github.com/repos/tranducquoc/brs_32/contributors","subscribers_url":"https://api.github.com/repos/tranducquoc/brs_32/subscribers","subscription_url":"https://api.github.com/repos/tranducquoc/brs_32/subscription","commits_url":"https://api.github.com/repos/tranducquoc/brs_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/tranducquoc/brs_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/tranducquoc/brs_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/tranducquoc/brs_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/tranducquoc/brs_32/contents/{+path}","compare_url":"https://api.github.com/repos/tranducquoc/brs_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tranducquoc/brs_32/merges","archive_url":"https://api.github.com/repos/tranducquoc/brs_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tranducquoc/brs_32/downloads","issues_url":"https://api.github.com/repos/tranducquoc/brs_32/issues{/number}","pulls_url":"https://api.github.com/repos/tranducquoc/brs_32/pulls{/number}","milestones_url":"https://api.github.com/repos/tranducquoc/brs_32/milestones{/number}","notifications_url":"https://api.github.com/repos/tranducquoc/brs_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tranducquoc/brs_32/labels{/name}","releases_url":"https://api.github.com/repos/tranducquoc/brs_32/releases{/id}","deployments_url":"https://api.github.com/repos/tranducquoc/brs_32/deployments","created_at":"2016-08-26T06:22:07Z","updated_at":"2016-08-26T02:18:11Z","pushed_at":"2016-08-29T06:00:23Z","git_url":"git://github.com/tranducquoc/brs_32.git","ssh_url":"git@github.com:tranducquoc/brs_32.git","clone_url":"https://github.com/tranducquoc/brs_32.git","svn_url":"https://github.com/tranducquoc/brs_32","homepage":null,"size":691,"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":"8a7752bdc5a9823b644ce9f482a1e9e8a2d6fa2c","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":66609157,"name":"brs_32","full_name":"framgia/brs_32","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/brs_32","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_32","forks_url":"https://api.github.com/repos/framgia/brs_32/forks","keys_url":"https://api.github.com/repos/framgia/brs_32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_32/teams","hooks_url":"https://api.github.com/repos/framgia/brs_32/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_32/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_32/events","assignees_url":"https://api.github.com/repos/framgia/brs_32/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_32/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_32/tags","blobs_url":"https://api.github.com/repos/framgia/brs_32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_32/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_32/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_32/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_32/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_32/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_32/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_32/subscription","commits_url":"https://api.github.com/repos/framgia/brs_32/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_32/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_32/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_32/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_32/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_32/merges","archive_url":"https://api.github.com/repos/framgia/brs_32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_32/downloads","issues_url":"https://api.github.com/repos/framgia/brs_32/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_32/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_32/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_32/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_32/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_32/deployments","created_at":"2016-08-26T02:18:11Z","updated_at":"2016-08-26T02:18:11Z","pushed_at":"2016-08-29T06:00:24Z","git_url":"git://github.com/framgia/brs_32.git","ssh_url":"git@github.com:framgia/brs_32.git","clone_url":"https://github.com/framgia/brs_32.git","svn_url":"https://github.com/framgia/brs_32","homepage":null,"size":692,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/5"},"html":{"href":"https://github.com/framgia/brs_32/pull/5"},"issue":{"href":"https://api.github.com/repos/framgia/brs_32/issues/5"},"comments":{"href":"https://api.github.com/repos/framgia/brs_32/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_32/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_32/statuses/38d4cc08889f09bf2fccf8fa34729fa54da1332c"}}}}
{"actor":{"display_login":"tranducquoc"}}