We have been working on various projects using ActiveResource for a couple of years. ActiveResource seems to work great if you use Rails on the client and server side.
Problems with ActiveResource
We use Scala on the server side and constantly encounter "Oh, ActiveResource does not want the API to be <do this standard thing> " or "ActiveResource did <this weird thing> ", so we need to change the server to support client requirements. This has all been discussed before, I know.
Another problem is that many stones and libraries require ActiveRecord. I can’t calculate the number of gems we used to “require” your model to use ActiveRecord, even if they don’t actually use the actual AR functionality. This seems to be mainly because it is a simple way to develop gems. "I use ActiveRecord and I can’t imagine that someone wouldn’t use it, so I just demand that I figure out a more general way instead" (note, I did it myself, so I’m not just complaining)
So, if we use ActiveResource, we need to break the server for it to work, and we cannot use most of what makes Rails great.
REST adapter?
All this made us ask the question "Why does ActiveResource exist at all?" I mean, why do you have this secondary data storage path? Why is ActiveResource not a REST adapter? With the REST adapter, you can have all the good things in all the gems and don't have to fight the ActiveResource effect. You just build your model in the same way as any model.
So, I began to explore the building. This is actually not at all difficult. A few hours of work, and you can create basic functionality. Otherwise, REST and SOAP examples are used, so this is possible.
So the question is coming back. If it's that simple, why the hell hasn't it been done before?
Not just a data warehouse
I came up with what interests me, this is the answer. Raising the scaffold for this, I quickly ran into a problem. REST does two things very well: 1) act on this object and 2) act on all objects. In fact, this is pretty much the limit of the REST standard.
And so I started to wonder if scope is a REST adapter. The ActiveRecord subsystem seems to need more than just "get one" and "get everything." It was based on a request to the data warehouse as you like.
Factual question
So, the actual question is: is there an Active Record REST adapter simply because REST does not define a standardized way of saying "give me all the cars where the car is in the same parking lot, since these drivers and drivers have a key."