Jens Kraemer wrote:
> that's exactly what I would have suggested, but please use symbols for
> field names in your call to acts_as_ferret.
So:
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
?
--
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk