Matthew Planchant wrote:

> class Book < ActiveRecord::Base
>   acts_as_ferret :additional_fields => [:author_first_name, 
> :author_surname]
>   belongs_to :author
> 
>   def author_first_name
>     return author.first_name
>   end
> 
>   def author_surname
>     return author.surname
>   end
> end

This works. Thanks.

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

Reply via email to