Will this work with many-to-many relationships?

For example:

class Book < ActiveRecord::Base
  acts_as_ferret :additional_fields => [:topic_title]

  has_many :book_topics, :dependent => true
  has_many :topics, :through => :book_topics

  def topic_title
    return topic.title
  end

end




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

Reply via email to