vendredi 31 juillet 2015

Rails_admin show child models fields in parents show page

I have Item model and I have ItemImage child model which is embedded inside of its parent.

When I open single Items page in rails_admin, it shows all of its children like this:

ItemImage #55b766556c656e12d0ac0000, ItemImage #55b766556c656e12d0ad0000, and ItemImage #55b766566c656e12d0ae0000

How to make rails_admin to show all of its children fields inside parents page? Is it possible to show them as table?

I'm using Mongoid.

Aucun commentaire:

Enregistrer un commentaire