{"action":"created","comment":{"url":"https://api.github.com/repos/gina-alaska/awrvi/pulls/comments/57981995","id":57981995,"diff_hunk":"@@ -13,6 +13,7 @@ def index\n     @communities = Community.where('name ilike ?', \"%#{@search_text}%\") if search_params.present?\n \n     redirect_to community_path(@communities.first) if @communities.count == 1\n+    @communities = @communities.order(:name).page(params[:page]).per(24)","path":"app/controllers/communities_controller.rb","position":4,"original_position":4,"commit_id":"e979e812e226ac729803928f793354ff8bc8ac6c","original_commit_id":"e979e812e226ac729803928f793354ff8bc8ac6c","user":{"login":"grimm","id":100140,"avatar_url":"https://avatars.githubusercontent.com/u/100140?v=3","gravatar_id":"","url":"https://api.github.com/users/grimm","html_url":"https://github.com/grimm","followers_url":"https://api.github.com/users/grimm/followers","following_url":"https://api.github.com/users/grimm/following{/other_user}","gists_url":"https://api.github.com/users/grimm/gists{/gist_id}","starred_url":"https://api.github.com/users/grimm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimm/subscriptions","organizations_url":"https://api.github.com/users/grimm/orgs","repos_url":"https://api.github.com/users/grimm/repos","events_url":"https://api.github.com/users/grimm/events{/privacy}","received_events_url":"https://api.github.com/users/grimm/received_events","type":"User","site_admin":false},"body":"Ack!  I figured it out. :(\r\n","created_at":"2016-03-30T23:42:48Z","updated_at":"2016-03-30T23:42:48Z","html_url":"https://github.com/gina-alaska/awrvi/pull/140#discussion_r57981995","pull_request_url":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/gina-alaska/awrvi/pulls/comments/57981995"},"html":{"href":"https://github.com/gina-alaska/awrvi/pull/140#discussion_r57981995"},"pull_request":{"href":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140","id":64672741,"html_url":"https://github.com/gina-alaska/awrvi/pull/140","diff_url":"https://github.com/gina-alaska/awrvi/pull/140.diff","patch_url":"https://github.com/gina-alaska/awrvi/pull/140.patch","issue_url":"https://api.github.com/repos/gina-alaska/awrvi/issues/140","number":140,"state":"open","locked":false,"title":"Communities list should be paged #96","user":{"login":"grimm","id":100140,"avatar_url":"https://avatars.githubusercontent.com/u/100140?v=3","gravatar_id":"","url":"https://api.github.com/users/grimm","html_url":"https://github.com/grimm","followers_url":"https://api.github.com/users/grimm/followers","following_url":"https://api.github.com/users/grimm/following{/other_user}","gists_url":"https://api.github.com/users/grimm/gists{/gist_id}","starred_url":"https://api.github.com/users/grimm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimm/subscriptions","organizations_url":"https://api.github.com/users/grimm/orgs","repos_url":"https://api.github.com/users/grimm/repos","events_url":"https://api.github.com/users/grimm/events{/privacy}","received_events_url":"https://api.github.com/users/grimm/received_events","type":"User","site_admin":false},"body":"Fixes #96 \r\n\r\nThe pagination works, but no theming yet.","created_at":"2016-03-30T18:17:10Z","updated_at":"2016-03-30T23:42:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a0bb5e1bcea9c414eb9314cedd407ec54f4d465","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140/commits","review_comments_url":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140/comments","review_comment_url":"https://api.github.com/repos/gina-alaska/awrvi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gina-alaska/awrvi/issues/140/comments","statuses_url":"https://api.github.com/repos/gina-alaska/awrvi/statuses/e979e812e226ac729803928f793354ff8bc8ac6c","head":{"label":"gina-alaska:communities_list_sould_be_paged_#96","ref":"communities_list_sould_be_paged_#96","sha":"e979e812e226ac729803928f793354ff8bc8ac6c","user":{"login":"gina-alaska","id":326968,"avatar_url":"https://avatars.githubusercontent.com/u/326968?v=3","gravatar_id":"","url":"https://api.github.com/users/gina-alaska","html_url":"https://github.com/gina-alaska","followers_url":"https://api.github.com/users/gina-alaska/followers","following_url":"https://api.github.com/users/gina-alaska/following{/other_user}","gists_url":"https://api.github.com/users/gina-alaska/gists{/gist_id}","starred_url":"https://api.github.com/users/gina-alaska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gina-alaska/subscriptions","organizations_url":"https://api.github.com/users/gina-alaska/orgs","repos_url":"https://api.github.com/users/gina-alaska/repos","events_url":"https://api.github.com/users/gina-alaska/events{/privacy}","received_events_url":"https://api.github.com/users/gina-alaska/received_events","type":"Organization","site_admin":false},"repo":{"id":49030695,"name":"awrvi","full_name":"gina-alaska/awrvi","owner":{"login":"gina-alaska","id":326968,"avatar_url":"https://avatars.githubusercontent.com/u/326968?v=3","gravatar_id":"","url":"https://api.github.com/users/gina-alaska","html_url":"https://github.com/gina-alaska","followers_url":"https://api.github.com/users/gina-alaska/followers","following_url":"https://api.github.com/users/gina-alaska/following{/other_user}","gists_url":"https://api.github.com/users/gina-alaska/gists{/gist_id}","starred_url":"https://api.github.com/users/gina-alaska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gina-alaska/subscriptions","organizations_url":"https://api.github.com/users/gina-alaska/orgs","repos_url":"https://api.github.com/users/gina-alaska/repos","events_url":"https://api.github.com/users/gina-alaska/events{/privacy}","received_events_url":"https://api.github.com/users/gina-alaska/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gina-alaska/awrvi","description":"","fork":false,"url":"https://api.github.com/repos/gina-alaska/awrvi","forks_url":"https://api.github.com/repos/gina-alaska/awrvi/forks","keys_url":"https://api.github.com/repos/gina-alaska/awrvi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gina-alaska/awrvi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gina-alaska/awrvi/teams","hooks_url":"https://api.github.com/repos/gina-alaska/awrvi/hooks","issue_events_url":"https://api.github.com/repos/gina-alaska/awrvi/issues/events{/number}","events_url":"https://api.github.com/repos/gina-alaska/awrvi/events","assignees_url":"https://api.github.com/repos/gina-alaska/awrvi/assignees{/user}","branches_url":"https://api.github.com/repos/gina-alaska/awrvi/branches{/branch}","tags_url":"https://api.github.com/repos/gina-alaska/awrvi/tags","blobs_url":"https://api.github.com/repos/gina-alaska/awrvi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gina-alaska/awrvi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gina-alaska/awrvi/git/refs{/sha}","trees_url":"https://api.github.com/repos/gina-alaska/awrvi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gina-alaska/awrvi/statuses/{sha}","languages_url":"https://api.github.com/repos/gina-alaska/awrvi/languages","stargazers_url":"https://api.github.com/repos/gina-alaska/awrvi/stargazers","contributors_url":"https://api.github.com/repos/gina-alaska/awrvi/contributors","subscribers_url":"https://api.github.com/repos/gina-alaska/awrvi/subscribers","subscription_url":"https://api.github.com/repos/gina-alaska/awrvi/subscription","commits_url":"https://api.github.com/repos/gina-alaska/awrvi/commits{/sha}","git_commits_url":"https://api.github.com/repos/gina-alaska/awrvi/git/commits{/sha}","comments_url":"https://api.github.com/repos/gina-alaska/awrvi/comments{/number}","issue_comment_url":"https://api.github.com/repos/gina-alaska/awrvi/issues/comments{/number}","contents_url":"https://api.github.com/repos/gina-alaska/awrvi/contents/{+path}","compare_url":"https://api.github.com/repos/gina-alaska/awrvi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gina-alaska/awrvi/merges","archive_url":"https://api.github.com/repos/gina-alaska/awrvi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gina-alaska/awrvi/downloads","issues_url":"https://api.github.com/repos/gina-alaska/awrvi/issues{/number}","pulls_url":"https://api.github.com/repos/gina-alaska/awrvi/pulls{/number}","milestones_url":"https://api.github.com/repos/gina-alaska/awrvi/milestones{/number}","notifications_url":"https://api.github.com/repos/gina-alaska/awrvi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gina-alaska/awrvi/labels{/name}","releases_url":"https://api.github.com/repos/gina-alaska/awrvi/releases{/id}","deployments_url":"https://api.github.com/repos/gina-alaska/awrvi/deployments","created_at":"2016-01-04T23:59:09Z","updated_at":"2016-03-15T18:00:58Z","pushed_at":"2016-03-30T23:39:11Z","git_url":"git://github.com/gina-alaska/awrvi.git","ssh_url":"git@github.com:gina-alaska/awrvi.git","clone_url":"https://github.com/gina-alaska/awrvi.git","svn_url":"https://github.com/gina-alaska/awrvi","homepage":null,"size":1102,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":26,"forks":0,"open_issues":26,"watchers":0,"default_branch":"master"}},"base":{"label":"gina-alaska:master","ref":"master","sha":"e68429a68ec2457d5ef17ba0db0f0dfb094932d7","user":{"login":"gina-alaska","id":326968,"avatar_url":"https://avatars.githubusercontent.com/u/326968?v=3","gravatar_id":"","url":"https://api.github.com/users/gina-alaska","html_url":"https://github.com/gina-alaska","followers_url":"https://api.github.com/users/gina-alaska/followers","following_url":"https://api.github.com/users/gina-alaska/following{/other_user}","gists_url":"https://api.github.com/users/gina-alaska/gists{/gist_id}","starred_url":"https://api.github.com/users/gina-alaska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gina-alaska/subscriptions","organizations_url":"https://api.github.com/users/gina-alaska/orgs","repos_url":"https://api.github.com/users/gina-alaska/repos","events_url":"https://api.github.com/users/gina-alaska/events{/privacy}","received_events_url":"https://api.github.com/users/gina-alaska/received_events","type":"Organization","site_admin":false},"repo":{"id":49030695,"name":"awrvi","full_name":"gina-alaska/awrvi","owner":{"login":"gina-alaska","id":326968,"avatar_url":"https://avatars.githubusercontent.com/u/326968?v=3","gravatar_id":"","url":"https://api.github.com/users/gina-alaska","html_url":"https://github.com/gina-alaska","followers_url":"https://api.github.com/users/gina-alaska/followers","following_url":"https://api.github.com/users/gina-alaska/following{/other_user}","gists_url":"https://api.github.com/users/gina-alaska/gists{/gist_id}","starred_url":"https://api.github.com/users/gina-alaska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gina-alaska/subscriptions","organizations_url":"https://api.github.com/users/gina-alaska/orgs","repos_url":"https://api.github.com/users/gina-alaska/repos","events_url":"https://api.github.com/users/gina-alaska/events{/privacy}","received_events_url":"https://api.github.com/users/gina-alaska/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gina-alaska/awrvi","description":"","fork":false,"url":"https://api.github.com/repos/gina-alaska/awrvi","forks_url":"https://api.github.com/repos/gina-alaska/awrvi/forks","keys_url":"https://api.github.com/repos/gina-alaska/awrvi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gina-alaska/awrvi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gina-alaska/awrvi/teams","hooks_url":"https://api.github.com/repos/gina-alaska/awrvi/hooks","issue_events_url":"https://api.github.com/repos/gina-alaska/awrvi/issues/events{/number}","events_url":"https://api.github.com/repos/gina-alaska/awrvi/events","assignees_url":"https://api.github.com/repos/gina-alaska/awrvi/assignees{/user}","branches_url":"https://api.github.com/repos/gina-alaska/awrvi/branches{/branch}","tags_url":"https://api.github.com/repos/gina-alaska/awrvi/tags","blobs_url":"https://api.github.com/repos/gina-alaska/awrvi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gina-alaska/awrvi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gina-alaska/awrvi/git/refs{/sha}","trees_url":"https://api.github.com/repos/gina-alaska/awrvi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gina-alaska/awrvi/statuses/{sha}","languages_url":"https://api.github.com/repos/gina-alaska/awrvi/languages","stargazers_url":"https://api.github.com/repos/gina-alaska/awrvi/stargazers","contributors_url":"https://api.github.com/repos/gina-alaska/awrvi/contributors","subscribers_url":"https://api.github.com/repos/gina-alaska/awrvi/subscribers","subscription_url":"https://api.github.com/repos/gina-alaska/awrvi/subscription","commits_url":"https://api.github.com/repos/gina-alaska/awrvi/commits{/sha}","git_commits_url":"https://api.github.com/repos/gina-alaska/awrvi/git/commits{/sha}","comments_url":"https://api.github.com/repos/gina-alaska/awrvi/comments{/number}","issue_comment_url":"https://api.github.com/repos/gina-alaska/awrvi/issues/comments{/number}","contents_url":"https://api.github.com/repos/gina-alaska/awrvi/contents/{+path}","compare_url":"https://api.github.com/repos/gina-alaska/awrvi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gina-alaska/awrvi/merges","archive_url":"https://api.github.com/repos/gina-alaska/awrvi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gina-alaska/awrvi/downloads","issues_url":"https://api.github.com/repos/gina-alaska/awrvi/issues{/number}","pulls_url":"https://api.github.com/repos/gina-alaska/awrvi/pulls{/number}","milestones_url":"https://api.github.com/repos/gina-alaska/awrvi/milestones{/number}","notifications_url":"https://api.github.com/repos/gina-alaska/awrvi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gina-alaska/awrvi/labels{/name}","releases_url":"https://api.github.com/repos/gina-alaska/awrvi/releases{/id}","deployments_url":"https://api.github.com/repos/gina-alaska/awrvi/deployments","created_at":"2016-01-04T23:59:09Z","updated_at":"2016-03-15T18:00:58Z","pushed_at":"2016-03-30T23:39:11Z","git_url":"git://github.com/gina-alaska/awrvi.git","ssh_url":"git@github.com:gina-alaska/awrvi.git","clone_url":"https://github.com/gina-alaska/awrvi.git","svn_url":"https://github.com/gina-alaska/awrvi","homepage":null,"size":1102,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":26,"forks":0,"open_issues":26,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140"},"html":{"href":"https://github.com/gina-alaska/awrvi/pull/140"},"issue":{"href":"https://api.github.com/repos/gina-alaska/awrvi/issues/140"},"comments":{"href":"https://api.github.com/repos/gina-alaska/awrvi/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/gina-alaska/awrvi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gina-alaska/awrvi/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/gina-alaska/awrvi/statuses/e979e812e226ac729803928f793354ff8bc8ac6c"}}}}