Displaying 1 result from an estimated 1 matches for "passedincity".
2006 Dec 11
6
easy question, how would i search a grandparent???!
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...