Displaying 1 result from an estimated 1 matches for "ogurec".
Did you mean:
oggdec
2006 Dec 30
4
newbie question, "show items in selected city and category"
Hi,
rails newbie needs help :)
I have classified ads (cads) related with cities and categories:
class Cad < ActiveRecord::Base
has_and_belongs_to_many :categories
has_and_belongs_to_many :cities
end
class Category < ActiveRecord::Base
has_and_belongs_to_many :cads
end
class City < ActiveRecord::Base
has_and_belongs_to_many :cads
end
I assume that user can act such