Działało to pięknie
umieszcza model
key :location_id, Integer, :required => true
def location
Location.find(location_id)
end
model lokalizacji
def self.find_places(id)
Property.find_by_location_id(id)
end
def find_places
Property.find_by_location_id(id)
end