ActiveAdmin automatically loading full association table

前端 未结 2 1922
生来不讨喜
生来不讨喜 2021-02-14 18:05

I\'m working on a project that uses ActiveAdmin for its administration backend.

I have two models, a Book model which has_many Products. When I try to access the product

2条回答
  •  一向
    一向 (楼主)
    2021-02-14 18:40

    A better approach now is to use remove_filter for the particular attribute or relationship:

    Or you can also remove a filter and still preserve the default filters:

    preserve_default_filters!
    remove_filter :id
    

    https://activeadmin.info/3-index-pages.html

提交回复
热议问题