{"action":"created","issue":{"url":"https://api.github.com/repos/amatsuda/kaminari/issues/721","labels_url":"https://api.github.com/repos/amatsuda/kaminari/issues/721/labels{/name}","comments_url":"https://api.github.com/repos/amatsuda/kaminari/issues/721/comments","events_url":"https://api.github.com/repos/amatsuda/kaminari/issues/721/events","html_url":"https://github.com/amatsuda/kaminari/issues/721","id":98834654,"number":721,"title":"undefined method `current_page' for #<Kaminari::PaginatableArray:0x007f62076b0ee8>","user":{"login":"carlosgaldino","id":48889,"avatar_url":"https://avatars.githubusercontent.com/u/48889?v=3","gravatar_id":"","url":"https://api.github.com/users/carlosgaldino","html_url":"https://github.com/carlosgaldino","followers_url":"https://api.github.com/users/carlosgaldino/followers","following_url":"https://api.github.com/users/carlosgaldino/following{/other_user}","gists_url":"https://api.github.com/users/carlosgaldino/gists{/gist_id}","starred_url":"https://api.github.com/users/carlosgaldino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlosgaldino/subscriptions","organizations_url":"https://api.github.com/users/carlosgaldino/orgs","repos_url":"https://api.github.com/users/carlosgaldino/repos","events_url":"https://api.github.com/users/carlosgaldino/events{/privacy}","received_events_url":"https://api.github.com/users/carlosgaldino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-03T20:41:06Z","updated_at":"2015-08-05T13:07:55Z","closed_at":null,"body":"Example:\r\n\r\nIn the view: `paginate @resource_collection_as_array`\r\n\r\nController: `@resource_collection_as_array = Kaminari.paginate_array(some_array)`\r\n\r\nThose are the basic conditions that trigger this error. Note that due to circumstances of the project there's no way of avoiding using `Kaminari.paginate_array`, for example, by changing it to an AR collection, etc.\r\n\r\nThe error was found using version 0.15.1 but I updated to 0.16.3 and it persists.\r\n\r\nIs this error known or any idea on how to avoid it?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/amatsuda/kaminari/issues/comments/127992131","html_url":"https://github.com/amatsuda/kaminari/issues/721#issuecomment-127992131","issue_url":"https://api.github.com/repos/amatsuda/kaminari/issues/721","id":127992131,"user":{"login":"Kinaan","id":4736524,"avatar_url":"https://avatars.githubusercontent.com/u/4736524?v=3","gravatar_id":"","url":"https://api.github.com/users/Kinaan","html_url":"https://github.com/Kinaan","followers_url":"https://api.github.com/users/Kinaan/followers","following_url":"https://api.github.com/users/Kinaan/following{/other_user}","gists_url":"https://api.github.com/users/Kinaan/gists{/gist_id}","starred_url":"https://api.github.com/users/Kinaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kinaan/subscriptions","organizations_url":"https://api.github.com/users/Kinaan/orgs","repos_url":"https://api.github.com/users/Kinaan/repos","events_url":"https://api.github.com/users/Kinaan/events{/privacy}","received_events_url":"https://api.github.com/users/Kinaan/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T13:07:55Z","updated_at":"2015-08-05T13:07:55Z","body":"you should try something like this \r\n```ruby\r\npaginate Kaminari.paginate_array(some_array, :total_count => @total_count).page(page_no).per(per_page),\r\n```"}}