{"action":"created","comment":{"url":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/23331791","id":23331791,"diff_hunk":"@@ -38,22 +40,33 @@ def get_user\n   end\n \n   def index\n+    if params[:sort]\n+      @had_skill_skill_id = params[:sort][:had_skill_skill_id].to_i\n+      @wanted_skill_skill_id = params[:sort][:wanted_skill_skill_id].to_i\n+    end\n     if params[:query]\n-      @users = User.search(params[:query]).limit(6).page(params[:page])\n+      @users = User.search(params[:query])\n+    elsif @had_skill_skill_id != nil && @wanted_skill_skill_id != nil\n+      @users = find_matching_had_wanted(@had_skill_skill_id, @wanted_skill_skill_id)","path":"app/controllers/users_controller.rb","position":34,"original_position":34,"commit_id":"35831071e2e1493097383c05eac13a96426f7fe2","original_commit_id":"35831071e2e1493097383c05eac13a96426f7fe2","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [84/80]","created_at":"2015-01-21T20:31:59Z","updated_at":"2015-01-21T20:31:59Z","html_url":"https://github.com/getschomp/skillswap/pull/37#discussion_r23331791","pull_request_url":"https://api.github.com/repos/getschomp/skillswap/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/23331791"},"html":{"href":"https://github.com/getschomp/skillswap/pull/37#discussion_r23331791"},"pull_request":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/getschomp/skillswap/pulls/37","id":27792160,"html_url":"https://github.com/getschomp/skillswap/pull/37","diff_url":"https://github.com/getschomp/skillswap/pull/37.diff","patch_url":"https://github.com/getschomp/skillswap/pull/37.patch","issue_url":"https://api.github.com/repos/getschomp/skillswap/issues/37","number":37,"state":"open","locked":false,"title":"Select boxes","user":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-21T20:31:54Z","updated_at":"2015-01-21T20:31:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae42adf92cada8afe2f681b484ccb26d968793e1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getschomp/skillswap/pulls/37/commits","review_comments_url":"https://api.github.com/repos/getschomp/skillswap/pulls/37/comments","review_comment_url":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/{number}","comments_url":"https://api.github.com/repos/getschomp/skillswap/issues/37/comments","statuses_url":"https://api.github.com/repos/getschomp/skillswap/statuses/35831071e2e1493097383c05eac13a96426f7fe2","head":{"label":"getschomp:select_boxes","ref":"select_boxes","sha":"35831071e2e1493097383c05eac13a96426f7fe2","user":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"repo":{"id":28350590,"name":"skillswap","full_name":"getschomp/skillswap","owner":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/getschomp/skillswap","description":"A website that will allow people to barter for skills based on a one-to-one trade.","fork":false,"url":"https://api.github.com/repos/getschomp/skillswap","forks_url":"https://api.github.com/repos/getschomp/skillswap/forks","keys_url":"https://api.github.com/repos/getschomp/skillswap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getschomp/skillswap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getschomp/skillswap/teams","hooks_url":"https://api.github.com/repos/getschomp/skillswap/hooks","issue_events_url":"https://api.github.com/repos/getschomp/skillswap/issues/events{/number}","events_url":"https://api.github.com/repos/getschomp/skillswap/events","assignees_url":"https://api.github.com/repos/getschomp/skillswap/assignees{/user}","branches_url":"https://api.github.com/repos/getschomp/skillswap/branches{/branch}","tags_url":"https://api.github.com/repos/getschomp/skillswap/tags","blobs_url":"https://api.github.com/repos/getschomp/skillswap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getschomp/skillswap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getschomp/skillswap/git/refs{/sha}","trees_url":"https://api.github.com/repos/getschomp/skillswap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getschomp/skillswap/statuses/{sha}","languages_url":"https://api.github.com/repos/getschomp/skillswap/languages","stargazers_url":"https://api.github.com/repos/getschomp/skillswap/stargazers","contributors_url":"https://api.github.com/repos/getschomp/skillswap/contributors","subscribers_url":"https://api.github.com/repos/getschomp/skillswap/subscribers","subscription_url":"https://api.github.com/repos/getschomp/skillswap/subscription","commits_url":"https://api.github.com/repos/getschomp/skillswap/commits{/sha}","git_commits_url":"https://api.github.com/repos/getschomp/skillswap/git/commits{/sha}","comments_url":"https://api.github.com/repos/getschomp/skillswap/comments{/number}","issue_comment_url":"https://api.github.com/repos/getschomp/skillswap/issues/comments/{number}","contents_url":"https://api.github.com/repos/getschomp/skillswap/contents/{+path}","compare_url":"https://api.github.com/repos/getschomp/skillswap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getschomp/skillswap/merges","archive_url":"https://api.github.com/repos/getschomp/skillswap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getschomp/skillswap/downloads","issues_url":"https://api.github.com/repos/getschomp/skillswap/issues{/number}","pulls_url":"https://api.github.com/repos/getschomp/skillswap/pulls{/number}","milestones_url":"https://api.github.com/repos/getschomp/skillswap/milestones{/number}","notifications_url":"https://api.github.com/repos/getschomp/skillswap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getschomp/skillswap/labels{/name}","releases_url":"https://api.github.com/repos/getschomp/skillswap/releases{/id}","created_at":"2014-12-22T17:43:23Z","updated_at":"2015-01-21T00:07:20Z","pushed_at":"2015-01-21T20:31:19Z","git_url":"git://github.com/getschomp/skillswap.git","ssh_url":"git@github.com:getschomp/skillswap.git","clone_url":"https://github.com/getschomp/skillswap.git","svn_url":"https://github.com/getschomp/skillswap","homepage":"https://the-skill-swap.herokuapp.com/","size":2000,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"getschomp:master","ref":"master","sha":"bc0943053cd9c58df60fa70e7913177cc8532ccc","user":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"repo":{"id":28350590,"name":"skillswap","full_name":"getschomp/skillswap","owner":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/getschomp/skillswap","description":"A website that will allow people to barter for skills based on a one-to-one trade.","fork":false,"url":"https://api.github.com/repos/getschomp/skillswap","forks_url":"https://api.github.com/repos/getschomp/skillswap/forks","keys_url":"https://api.github.com/repos/getschomp/skillswap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getschomp/skillswap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getschomp/skillswap/teams","hooks_url":"https://api.github.com/repos/getschomp/skillswap/hooks","issue_events_url":"https://api.github.com/repos/getschomp/skillswap/issues/events{/number}","events_url":"https://api.github.com/repos/getschomp/skillswap/events","assignees_url":"https://api.github.com/repos/getschomp/skillswap/assignees{/user}","branches_url":"https://api.github.com/repos/getschomp/skillswap/branches{/branch}","tags_url":"https://api.github.com/repos/getschomp/skillswap/tags","blobs_url":"https://api.github.com/repos/getschomp/skillswap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getschomp/skillswap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getschomp/skillswap/git/refs{/sha}","trees_url":"https://api.github.com/repos/getschomp/skillswap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getschomp/skillswap/statuses/{sha}","languages_url":"https://api.github.com/repos/getschomp/skillswap/languages","stargazers_url":"https://api.github.com/repos/getschomp/skillswap/stargazers","contributors_url":"https://api.github.com/repos/getschomp/skillswap/contributors","subscribers_url":"https://api.github.com/repos/getschomp/skillswap/subscribers","subscription_url":"https://api.github.com/repos/getschomp/skillswap/subscription","commits_url":"https://api.github.com/repos/getschomp/skillswap/commits{/sha}","git_commits_url":"https://api.github.com/repos/getschomp/skillswap/git/commits{/sha}","comments_url":"https://api.github.com/repos/getschomp/skillswap/comments{/number}","issue_comment_url":"https://api.github.com/repos/getschomp/skillswap/issues/comments/{number}","contents_url":"https://api.github.com/repos/getschomp/skillswap/contents/{+path}","compare_url":"https://api.github.com/repos/getschomp/skillswap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getschomp/skillswap/merges","archive_url":"https://api.github.com/repos/getschomp/skillswap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getschomp/skillswap/downloads","issues_url":"https://api.github.com/repos/getschomp/skillswap/issues{/number}","pulls_url":"https://api.github.com/repos/getschomp/skillswap/pulls{/number}","milestones_url":"https://api.github.com/repos/getschomp/skillswap/milestones{/number}","notifications_url":"https://api.github.com/repos/getschomp/skillswap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getschomp/skillswap/labels{/name}","releases_url":"https://api.github.com/repos/getschomp/skillswap/releases{/id}","created_at":"2014-12-22T17:43:23Z","updated_at":"2015-01-21T00:07:20Z","pushed_at":"2015-01-21T20:31:19Z","git_url":"git://github.com/getschomp/skillswap.git","ssh_url":"git@github.com:getschomp/skillswap.git","clone_url":"https://github.com/getschomp/skillswap.git","svn_url":"https://github.com/getschomp/skillswap","homepage":"https://the-skill-swap.herokuapp.com/","size":2000,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/37"},"html":{"href":"https://github.com/getschomp/skillswap/pull/37"},"issue":{"href":"https://api.github.com/repos/getschomp/skillswap/issues/37"},"comments":{"href":"https://api.github.com/repos/getschomp/skillswap/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/getschomp/skillswap/statuses/35831071e2e1493097383c05eac13a96426f7fe2"}}}}