Displaying 1 result from an estimated 1 matches for "joboff".
Did you mean:
jobff
2006 Dec 30
2
search on multiple table
Hello,
I am trying to make a search, using acts_as_ferret on a
has_and_belongs_to_many relation :
class a < ActiveRecord::Base
belongs_to :b
has_and_belongs_to_many :c
Joboffer.find_by_contents( query +b_id:1 ) is working fine
but
Joboffer.find_by_contents( query +c:1 ) is not working
Here are the tables descriptions:
Table a have field : id, b_id
Table b have field : id, name
Table c have field : id, name
Table c_a have field :a_id, c_id
Any idea on how t...