Forum: Ruby on Rails RE: Showing Images from a file store

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-04-13 00:19
(Received via mailing list)
Hi Josh,
Thanks for the clarification. Is there any online example somewhere that
you are aware of so that I can see it in action?
Silvy Mathews


From: removed_email_address@domain.invalid
[mailto:removed_email_address@domain.invalid] On Behalf Of Josh K.
Sent: Wednesday, April 12, 2006 12:39 PM
To: removed_email_address@domain.invalid
Subject: Re: [Rails] Showing Images from a file store

On 4/12/06, removed_email_address@domain.invalid 
<removed_email_address@domain.invalid> wrote:

	I wanted to show the image along with other data from the
	How do I do that. Looks like I am not understanding it.
	<td><%= send_file '\\\xx\xx\xxx\abc.gif"',
	                                        :type => 'image/jpeg',
	                                        :disposition =>


What you want to do is set up a controller that handles the dispatching
of the images.  It is there that you would have the send_file command.
Remember that in HTTP you are going to have seperate request for each
item on the page, so map the new controller url using routes and use
that url in your view, for example "/dynamicimages/abc.gif".

Does that make sense?

This topic is locked and can not be replied to.