https://avo.cool logo
Hi, I've got a resource that has a :photos fie...
# resources
p
Hi, I've got a resource that has a :photos field. This is a has_many association. My Photo record does indeed have an image AS attachment, and the title field is basically the uploaded files name (not very useful) But my field definition has
searchable: true
, when I click to choose Photos, the resulting UI, either a standard select box or the searchable custom UI, are neither very useful due to this being a more visual record type. Ideally, we could have a UI similar to the media browser, but showing Photo records and using a specific field on the Photo record as the thing to display (eg, the file attachment).
m
Thread automatically created by rctneil in #1141725701549072486
p
Copy code
field :photos, as: :has_many,
      searchable: true,
      through: :photo_items,