I am a beginner at Ruby on Rails and Database stuff and I am having a hard time researching how to display image from PostgreSQL and Sqlite3 database to my website using Ruby on Rails, or in Ruby on Rails.
And my problem is "how to display images from database to my website using Rails", just that.
I started with <%= @real_estate.image %> in my show.html.erb and then what displays to my website is nothing useful like
#<ActionDispatch::Http::UploadedFile:0x000000000d4fb548>
ActiveStorageto do this, it is really complete and easy to setup, after this, you can implement it in all the models you want without needing additional migrations It comes by default with Rails since version 5.2 Checkout this docs to setup and use.