madmin icon indicating copy to clipboard operation
madmin copied to clipboard

Selecting associated models

Open yorickvandervis opened this issue 2 years ago • 2 comments

I was wondering if it was possible to enable using associated models during creation. For example, I am trying to create a model which has some associations. It's an Activity model which belongs_to an ActivityCategory model. During creation on the /madmin panel I can't select any category. Same goes other way around. Is there a way to select these?

yorickvandervis avatar Oct 15 '22 13:10 yorickvandervis

@excid3

tolaseadegbite avatar Oct 16 '23 11:10 tolaseadegbite

This would be a huge timesaver for us, I'm having to edit all forms of models that have associations in order to get this feature. Perhaps the association scope could be an option of the attribute method when defining the resource? Or perhaps it could default to Model.all to at least get something usable out of the box.

bbonamin avatar Mar 14 '24 17:03 bbonamin