How to display model data along with the images from the fil

I have a controller that is similar to the one below. But how do I use
send_file method inside the controller so that I can display images as
as display the text.

For example, if my controller name is called images and I am displaying
the attributes about the image like artist name, song title and wanted
use their band picture also in the same controller?

http://localhost/images/list should display

<%=> <%= images.title%> <%= images.price%> band picture. This is coming from a file store

How do I accomplish that.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs