How would I query for a range in og? like list through the db by oid, even.
you mean, like you want every object from oid 20..30?
(1 attempts)
Fabian answered:
If you like SQL:
users = User.find(:condition => "OID >= 20 AND oid <= 30")
returns objects from oid 20 to 30.
If you don't like SQL, you can use ez (ez), which is supported by Og since version 0.28. Ez is a query language with Ruby syntax:
users = User.find{|user| user.oid >= 10 && user.oid <= 20}