Jens Kraemer wrote:
> On Tue, Nov 07, 2006 at 11:35:38AM +0100, Matthew Planchant wrote:
>>   def topic_title
>>     return topic.title
>>   end
> 
> this won't work, as there is no method 'topic' in your Book class.
> But you could index the titles of all topics:
> 
> acts_as_ferret :additional_fields => [:topic_titles]
> def topic_titles
>   topics.collect { |topic| topic.title }.join ' '
> end

Thanks. I'll give this a shot.

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to