Forum: Ruby on Rails How to display model data along with the images from the fil

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
30d8481c892d624b1b87d2e200b9248a?d=identicon&s=25 Silvy (Guest)
on 2006-04-14 00:06
(Received via mailing list)
I have a controller that is similar to the one below. But how do I use
the
send_file method inside the controller so that I can display images as
well
as display the text.

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

http://localhost/images/list  should display


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

How do I accomplish that.

Silvy
This topic is locked and can not be replied to.