I'm using ActiveResource 4.0, and I need to get pagination working. I've set the response headers on the server end, but I cannot read them on the client end.
I'm using this great blog post: http://javiersaldana.com/2013/04/29/pagination-with-activeresource.html
And I'm trying to read the headers from the response:
ActiveResource::Base.connection.response
But I'm getting this error:
undefined method 'response' for #<ActiveResource::Connection:0x007f9a4f9692b8>
How can I get the response headers?