Skip to content
Discussion options

You must be logged in to vote

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 a file field.

In your model you can either use active storage or dragonfly accessors to allow attachments.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HatsuMora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants