Forum: Ferret Grabbing names from main table foreign keys

71bc5fc6f37ff015781a4a8b4cc20106?d=identicon&s=25 Paul Walksalong (walksalong)
on 2008-07-18 20:08
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| }.join ' '

But no luck.

This topic is locked and can not be replied to.