class User < AR
has_many :locations
end
class Location < AR
belongs_to :user
geocoded_by :address
end
如何编写执行此操作的查询?
@users = User._a_query_that_returns_users_in_'Paris'_
class User < AR
has_many :locations
end
class Location < AR
belongs_to :user
geocoded_by :address
end
如何编写执行此操作的查询?
@users = User._a_query_that_returns_users_in_'Paris'_