Ask A Question


You’re not receiving notifications from this thread.

How do I make a image gallery/modal for my real estate listing app?

Vedant Lohbare asked in Rails

Hey, I am trying to make a rails app for real estate listing, however, I am stuck in the images section.
The users on the website can upload images on the website along with the properties which I want to be able to dislpayed like this:

Basically it shows small thumbnails of the initial few images, which when clicked on opens a modal to display the entire gallery.
Can someone point me to the right direction? thanks.


Hey Vendant...check out Active Storage and the tutorial below. Active Storage allows you to attach files to your Active Record model, such as images.

Join the discussion
Create an account Log in

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

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

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