ruby on rails - Active admin custom filter with active record relations -
here problem:
i have 3 models:
taxons
class taxon < activerecord::base has_and_belongs_to_many :categories, :uniq => true
categories
class category < activerecord::base has_and_belongs_to_many :taxons, :uniq => true has_many :products
and products
class product < activerecord::base belongs_to :category
in active admin, have add custom filter searching products taxons.
if have idea, how todo it, gratefull help.
p.s. have nested set in taxons, if that's important
Comments
Post a Comment