Rails_admin has_many table in show?

I would like to show a related set of has_many objects in a table view representation of the parent object.

Currently, has_many elements are displayed only as a comma-separated list.

How can I show has_many elements as a table and specify columns to include?

+4
source share
1 answer

For example, Article has_many Autors .

Then you should simply add the Article class:

accepts_nested_attributes_for :autors, allow_destroy: true attr_accessible :autors_attributes 

Additional information https://github.com/sferik/rails_admin/wiki/Has-and-belongs-to-many-association

-3
source

Source: https://habr.com/ru/post/1481745/


All Articles