> The REST APIs don't offer such a SELECT COUNT(*) idea, so
> count is essentially the same as Person.find(:all).size.

Well, IMHO the REST APIs ought to offer such an idea.

Typically, I'd expect GET /persons/count.xml to return
<count>47</count> or something similar

> We shouldn't pursue API parity with AR for the sake of it. They
> operate at very different scales and many practices are not directly
> transferable across those scales.

I totally agree with you on this point, however, I believe it would
make sense to add as much functionality as possible from AR to ARes.
This would make the introduction of a middleware layer more feasible
in rails.

Cheers

Stefan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to