Let's say I have a class Job that has a series of possible locations
that are stored as a sequence of foreign keys

class Job
acts_as_ferret {
 :locations => {}
}

 def locations
    "1,25,23,15"
    # ??
 end
end

Is that a good way to store the location ids?

How would I search for Jobs in a certain location

Job.find_by_contents('locations(25)')

cheers
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to