On Thu, Jul 13, 2006 at 04:59:02PM +0200, Guest wrote:
>
> Hmm. I tried doing it with a few levels of nesting like:
>
> acts_as_ferret :fields => { :menu_item_name, 'city', 'state', 'zip' }
>
> def menu_item_name
> menus.menu_categories.menu_items.name
> end
>
> And I don't get any results.
that can have many reasons ;-)
Basically, what you do in the method is irrelevant to ferret, it just
indexes what is returned by the method.
You should see what fields acts_as_ferret adds to the index
in your development log when you save a record.
please check there if it adds what you want.
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