|
search on multiple table: msg#00130lang.ruby.ferret.general
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 to include c on my search ? -- Posted via http://www.ruby-forum.com/. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: error of "no such file to load -- ferret_ext": 00130, Daniel Kehoe |
|---|---|
| Next by Date: | How do you use acts_as_ferret without rails?: 00130, Hh Hh |
| Previous by Thread: | error of "no such file to load -- ferret_ext"i: 00130, Daniel Kehoe |
| Next by Thread: | Re: search on multiple table: 00130, Jens Kraemer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |