I have a table being searched by ferret called expenses. In the expenses
table I have a person_id and project_id field that links to the people
and projects tables. How do I specify in acts_as_ferret to search for
the linked people and projects associated within expenses?
I tried something like this:
acts_as_ferret :additional_fields => [:person_name]
def person_name
people.collect { |person| person.name }.join ’ ’
end
But no luck.
Thanks!
Paul