{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_51/pulls/comments/102127969","pull_request_review_id":22873527,"id":102127969,"diff_hunk":"@@ -4,7 +4,8 @@ class BooksController < ApplicationController\n   def index\n     @books = Book.order_by_time.paginate page: params[:page], per_page: Settings.per_page\n     @categories = Category.all\n-    @books_search = Book.search(params[:search], params[:category_id])\n+    @books_search = Book.by_category(params[:category])\n+      .search_book_by_search_params(params[:search])","path":"app/controllers/books_controller.rb","position":6,"original_position":6,"commit_id":"ecb191037cf9d2764fe03c09cf5f789447b889aa","original_commit_id":"ecb191037cf9d2764fe03c09cf5f789447b889aa","user":{"login":"dat-hedspi","id":14577773,"avatar_url":"https://avatars.githubusercontent.com/u/14577773?v=3","gravatar_id":"","url":"https://api.github.com/users/dat-hedspi","html_url":"https://github.com/dat-hedspi","followers_url":"https://api.github.com/users/dat-hedspi/followers","following_url":"https://api.github.com/users/dat-hedspi/following{/other_user}","gists_url":"https://api.github.com/users/dat-hedspi/gists{/gist_id}","starred_url":"https://api.github.com/users/dat-hedspi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dat-hedspi/subscriptions","organizations_url":"https://api.github.com/users/dat-hedspi/orgs","repos_url":"https://api.github.com/users/dat-hedspi/repos","events_url":"https://api.github.com/users/dat-hedspi/events{/privacy}","received_events_url":"https://api.github.com/users/dat-hedspi/received_events","type":"User","site_admin":false},"body":"bỏ () được thì phải","created_at":"2017-02-21T03:48:13Z","updated_at":"2017-02-21T03:48:21Z","html_url":"https://github.com/framgia/brs_51/pull/23#discussion_r102127969","pull_request_url":"https://api.github.com/repos/framgia/brs_51/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_51/pulls/comments/102127969"},"html":{"href":"https://github.com/framgia/brs_51/pull/23#discussion_r102127969"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_51/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_51/pulls/23","id":107109375,"html_url":"https://github.com/framgia/brs_51/pull/23","diff_url":"https://github.com/framgia/brs_51/pull/23.diff","patch_url":"https://github.com/framgia/brs_51/pull/23.patch","issue_url":"https://api.github.com/repos/framgia/brs_51/issues/23","number":23,"state":"open","locked":false,"title":"fix search","user":{"login":"lylogi","id":14809063,"avatar_url":"https://avatars.githubusercontent.com/u/14809063?v=3","gravatar_id":"","url":"https://api.github.com/users/lylogi","html_url":"https://github.com/lylogi","followers_url":"https://api.github.com/users/lylogi/followers","following_url":"https://api.github.com/users/lylogi/following{/other_user}","gists_url":"https://api.github.com/users/lylogi/gists{/gist_id}","starred_url":"https://api.github.com/users/lylogi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lylogi/subscriptions","organizations_url":"https://api.github.com/users/lylogi/orgs","repos_url":"https://api.github.com/users/lylogi/repos","events_url":"https://api.github.com/users/lylogi/events{/privacy}","received_events_url":"https://api.github.com/users/lylogi/received_events","type":"User","site_admin":false},"body":"fix search for user","created_at":"2017-02-21T03:20:22Z","updated_at":"2017-02-21T03:48:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82e19b232371a6c6687772e83ff3fa41130d2b94","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_51/pulls/23/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_51/pulls/23/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_51/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_51/issues/23/comments","statuses_url":"https://api.github.com/repos/framgia/brs_51/statuses/ecb191037cf9d2764fe03c09cf5f789447b889aa","head":{"label":"lylogi:search-fix","ref":"search-fix","sha":"ecb191037cf9d2764fe03c09cf5f789447b889aa","user":{"login":"lylogi","id":14809063,"avatar_url":"https://avatars.githubusercontent.com/u/14809063?v=3","gravatar_id":"","url":"https://api.github.com/users/lylogi","html_url":"https://github.com/lylogi","followers_url":"https://api.github.com/users/lylogi/followers","following_url":"https://api.github.com/users/lylogi/following{/other_user}","gists_url":"https://api.github.com/users/lylogi/gists{/gist_id}","starred_url":"https://api.github.com/users/lylogi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lylogi/subscriptions","organizations_url":"https://api.github.com/users/lylogi/orgs","repos_url":"https://api.github.com/users/lylogi/repos","events_url":"https://api.github.com/users/lylogi/events{/privacy}","received_events_url":"https://api.github.com/users/lylogi/received_events","type":"User","site_admin":false},"repo":{"id":81283452,"name":"brs_51","full_name":"lylogi/brs_51","owner":{"login":"lylogi","id":14809063,"avatar_url":"https://avatars.githubusercontent.com/u/14809063?v=3","gravatar_id":"","url":"https://api.github.com/users/lylogi","html_url":"https://github.com/lylogi","followers_url":"https://api.github.com/users/lylogi/followers","following_url":"https://api.github.com/users/lylogi/following{/other_user}","gists_url":"https://api.github.com/users/lylogi/gists{/gist_id}","starred_url":"https://api.github.com/users/lylogi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lylogi/subscriptions","organizations_url":"https://api.github.com/users/lylogi/orgs","repos_url":"https://api.github.com/users/lylogi/repos","events_url":"https://api.github.com/users/lylogi/events{/privacy}","received_events_url":"https://api.github.com/users/lylogi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lylogi/brs_51","description":"Book Reviewing System - Training Project","fork":true,"url":"https://api.github.com/repos/lylogi/brs_51","forks_url":"https://api.github.com/repos/lylogi/brs_51/forks","keys_url":"https://api.github.com/repos/lylogi/brs_51/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lylogi/brs_51/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lylogi/brs_51/teams","hooks_url":"https://api.github.com/repos/lylogi/brs_51/hooks","issue_events_url":"https://api.github.com/repos/lylogi/brs_51/issues/events{/number}","events_url":"https://api.github.com/repos/lylogi/brs_51/events","assignees_url":"https://api.github.com/repos/lylogi/brs_51/assignees{/user}","branches_url":"https://api.github.com/repos/lylogi/brs_51/branches{/branch}","tags_url":"https://api.github.com/repos/lylogi/brs_51/tags","blobs_url":"https://api.github.com/repos/lylogi/brs_51/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lylogi/brs_51/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lylogi/brs_51/git/refs{/sha}","trees_url":"https://api.github.com/repos/lylogi/brs_51/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lylogi/brs_51/statuses/{sha}","languages_url":"https://api.github.com/repos/lylogi/brs_51/languages","stargazers_url":"https://api.github.com/repos/lylogi/brs_51/stargazers","contributors_url":"https://api.github.com/repos/lylogi/brs_51/contributors","subscribers_url":"https://api.github.com/repos/lylogi/brs_51/subscribers","subscription_url":"https://api.github.com/repos/lylogi/brs_51/subscription","commits_url":"https://api.github.com/repos/lylogi/brs_51/commits{/sha}","git_commits_url":"https://api.github.com/repos/lylogi/brs_51/git/commits{/sha}","comments_url":"https://api.github.com/repos/lylogi/brs_51/comments{/number}","issue_comment_url":"https://api.github.com/repos/lylogi/brs_51/issues/comments{/number}","contents_url":"https://api.github.com/repos/lylogi/brs_51/contents/{+path}","compare_url":"https://api.github.com/repos/lylogi/brs_51/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lylogi/brs_51/merges","archive_url":"https://api.github.com/repos/lylogi/brs_51/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lylogi/brs_51/downloads","issues_url":"https://api.github.com/repos/lylogi/brs_51/issues{/number}","pulls_url":"https://api.github.com/repos/lylogi/brs_51/pulls{/number}","milestones_url":"https://api.github.com/repos/lylogi/brs_51/milestones{/number}","notifications_url":"https://api.github.com/repos/lylogi/brs_51/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lylogi/brs_51/labels{/name}","releases_url":"https://api.github.com/repos/lylogi/brs_51/releases{/id}","deployments_url":"https://api.github.com/repos/lylogi/brs_51/deployments","created_at":"2017-02-08T03:29:57Z","updated_at":"2017-02-08T03:29:59Z","pushed_at":"2017-02-21T03:22:03Z","git_url":"git://github.com/lylogi/brs_51.git","ssh_url":"git@github.com:lylogi/brs_51.git","clone_url":"https://github.com/lylogi/brs_51.git","svn_url":"https://github.com/lylogi/brs_51","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"9c1e1f340082e859d756360064afdf301768785f","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":81036499,"name":"brs_51","full_name":"framgia/brs_51","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_51","description":"Book Reviewing System - Training Project","fork":false,"url":"https://api.github.com/repos/framgia/brs_51","forks_url":"https://api.github.com/repos/framgia/brs_51/forks","keys_url":"https://api.github.com/repos/framgia/brs_51/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_51/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_51/teams","hooks_url":"https://api.github.com/repos/framgia/brs_51/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_51/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_51/events","assignees_url":"https://api.github.com/repos/framgia/brs_51/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_51/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_51/tags","blobs_url":"https://api.github.com/repos/framgia/brs_51/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_51/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_51/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_51/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_51/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_51/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_51/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_51/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_51/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_51/subscription","commits_url":"https://api.github.com/repos/framgia/brs_51/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_51/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_51/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_51/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_51/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_51/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_51/merges","archive_url":"https://api.github.com/repos/framgia/brs_51/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_51/downloads","issues_url":"https://api.github.com/repos/framgia/brs_51/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_51/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_51/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_51/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_51/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_51/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_51/deployments","created_at":"2017-02-06T01:40:09Z","updated_at":"2017-02-09T07:46:54Z","pushed_at":"2017-02-21T03:22:04Z","git_url":"git://github.com/framgia/brs_51.git","ssh_url":"git@github.com:framgia/brs_51.git","clone_url":"https://github.com/framgia/brs_51.git","svn_url":"https://github.com/framgia/brs_51","homepage":null,"size":76,"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":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_51/pulls/23"},"html":{"href":"https://github.com/framgia/brs_51/pull/23"},"issue":{"href":"https://api.github.com/repos/framgia/brs_51/issues/23"},"comments":{"href":"https://api.github.com/repos/framgia/brs_51/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_51/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_51/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_51/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_51/statuses/ecb191037cf9d2764fe03c09cf5f789447b889aa"}}}}
{"actor":{"display_login":"dat-hedspi"}}