Silvy
2006-Apr-13 22:05 UTC
[Rails] How to display model data along with the images from the file store
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060413/9b3bf2c2/attachment.html