On Tue, Nov 07, 2006 at 12:08:10AM +0100, Pete Royle wrote: [..] > 1) Create methods in Book.rb to access these fields: [..] > 2) Pass these fields as options to the call to acts_as_ferret: > > class Book < ActiveRecord::Base > acts_as_ferret :additional_fields => ['author_first_name', > 'author_surname'] > belongs_to :author > end > > I'm not sure it there's a more elegant solution, but that should do the > trick.
that's exactly what I would have suggested, but please use symbols for field names in your call to acts_as_ferret. cheers, Jens -- webit! Gesellschaft für neue Medien mbH www.webit.de Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED] Schnorrstraße 76 Tel +49 351 46766 0 D-01069 Dresden Fax +49 351 46766 66 _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

