Search code examples
ruby-on-railspaginationactiveresource

Rails, ActiveResource, and Pagination


What's the best way to implement pagination in a REST API so that an ActiveResource client can easily navigate paginated results? There have been some proposals, for example here and here, but being new to ActiveResource I'm wondering if there's a better way.


Solution

  • I did it with kaminari and some patch to activeresource, here is gem with example https://github.com/Fivell/activeresource-response