What would be the best way to approach pagination over an API with active resource? I’m building the API and the app consuming the API so I need both ends of the equation.
I’ve seen people setting headers for what page they want in ActiveResource (X-PERPAGE for example).
Any suggestions would be great. Looking for best solution.
1) patch activeresource with next code
it will add possibility to read response after rest method was executed
2) on server side with kaminari you can do next
3) on client side again with kaminari