-
Hi, Background: Problem: I was on the path of using ActiveStorage, but I stumbled upon the implementation of Is there a "normal" or "easy" way of doing this before I start overriding a lot of code? Thanks for your time, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There are several ways to enable uploads for your custom model. All are Rails default ways to add attachments to a Rails model. To make it work in the Alchemy admin you need to overwrite the form partial in your In your model you can either use active storage or dragonfly accessors to allow attachments. |
Beta Was this translation helpful? Give feedback.
There are several ways to enable uploads for your custom model. All are Rails default ways to add attachments to a Rails model.
To make it work in the Alchemy admin you need to overwrite the form partial in your
app/views/admin/resource-name/
folder and use Rails' form helpers to add afile
field.In your model you can either use active storage or dragonfly accessors to allow attachments.