Ask A Question

Notifications

You’re not receiving notifications from this thread.

HOW DO I SHOW avatar as a thumbnail or image in rails_admin panel.

sd asked in Rails

Hi guys, I have rails model User which has_one_attached :avatar
In rails admin, I can create a new user and upload user image avatar, but the image shows up as a broken image.
How can I let it display like the way a user profile user icon usually displays.

NOTE: when you click on the broken avatar, it shows the image in a new tab, meaning the image is there, How can I display it alongside user_id, email, role.......etc in the rails admin.
Thank you guys in advance, I'm quite new to this!!!!

The same goes for a another model, Product , has_many_attached :images.
How do I show these images in rails_admin.

Reply
Reply

I have issue with has_many_attached and fortunately I find this post. Thank you for your sharing.
https://github.com/railsadminteam/rails_admin/issues/2990 cubes 2048

Reply
Join the discussion
Create an account Log in

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

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

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