Save 36% for Black Friday! Learn more

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

Ask A Question

Notifications

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: 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

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.