Filtering association model in active admin and Act Taggable On

A has many B. I used Act Taggable On gem in the two models. This gem creates a intermediate table called taggings. The tags are saved in table tag and the relation between A, or B, with the tags in the table taggings. Thus, the type of tags are A or B and that information is saved in a column called taggable_type of the table taggings. I need to know if it possible to create a filter (not custom filter) in the page of A where it is possible to filtering by all tags. For example Suposse a1 is a object of A, and b1 and b2 is a object of B. b1 and b2 have a tag "tags_B". Then when I filter by tags1 in page of AI need to show a1.

There is any way to make this using the sintax of active admin?

I trying

admin/A

filter: A_or_B_tags_name_taggings

But that doesnot work

链接地址: http://www.djcxy.com/p/36008.html

上一篇: 充当带有预定义标签的标签

下一篇: 在活动管理中过滤关联模型,并在行为标记开启