New Discussion

Notifications

You’re not receiving notifications from this thread.

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

1
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: https://www.nobroker.in/property/3-BHK-apartment-for-rent-in-Hadapsar-pune-for-rs-50000/ff8081815847c301015847f5e9d70b74/detail

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.

https://gorails.com/episodes/direct-uploads-with-rails-active-storage?autoplay=1

Join the discussion
Create an account Log in

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

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

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