Ask A Question

Notifications

You’re not receiving notifications from this thread.

uninitialized constant ActiveStorage::AttachmentDashboard administrate gem

Alebo asked in Rails

I added the administrate gem to a project I'm working on but I get this error: uninitialized constant ActiveStorage::AttachmentDashboard. I then tried to add the gem from dreamersoul (https://github.com/Dreamersoul/administrate-field-active_storage) but it did not solve my issue. I have images being saved with cloudinary if that makes any difference. Does someone have an idea how I can solve this?

Reply

Yes, probably there is something like this:

logo_attachment: Field::HasOne,
logo_blob: Field::HasOne,

You have to make it an Field::ActiveStorage like this:

logo: Field::ActiveStorage,

Go through all files, search for _blob and fix it.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,464+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.