Forum: Ferret Grabbing names from main table foreign keys

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6509ed275fbfbc04609757b47da6cca6?d=identicon&s=25 Paul W. (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.