|
easy question, how would i search a grandparent???!: msg#00080lang.ruby.ferret.general
hi, i have this in my code Article.find_by_contents("#{searchstring} +city:#{passedincity}") well that returns to me only articles that belong to whatever the user selected in city. now is it possible to search the grandparent? for example class country has_many states class states has_many cities belongs_to country class city belongs_to states ...... i would like to search articles that only belong to a country. something like... Article.find_by_contents("#{searchstring} +states.country:#{passedincountry}") -- Posted via http://www.ruby-forum.com/. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | exact searches: 00080, Raymond O'connor |
|---|---|
| Next by Date: | Re: easy question, how would i search a grandparent???!: 00080, Jens Kraemer |
| Previous by Thread: | exact searchesi: 00080, Raymond O'connor |
| Next by Thread: | Re: easy question, how would i search a grandparent???!: 00080, Jens Kraemer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |