I've read the Rails Envy AAF tutorial at
http://railsenvy.com/2007/2/19/acts-as-ferret-tutorial and its given me
some really good ideas.
My problem lies in having AAF search the target Model's child tables.
I have no problem at all doing something like:
acts_as_ferret :fields => [:title, :update_collection, :member_name]
def member_name
return "#{self.member.username}"
end
However when I try to query child tables like such...
def update_collection
self.place_updates.collect { |update| update.description }.join
' '
end
I have no luck.
I know the method is working because if I do something like
raise Model.find(5).update_collection.inspect it returns a string with
all descriptions.
Any ideas? I would really appreciate any help!
Dave
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk