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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -