How to show the images

I am storing the images in /public/snapshots.

for showing the images i have used image_tag
but in my image_tag if i am going to write as
<%= image_tag image.filename,:alt =>image.filename,:size=>‘320x244’%>

but the image location is going as /images/1.jpg

i want to show the images in my snapshots directory.Please help

instead of using image.filename, you could try
http://yourserver:port/snapshots/ followed by image.filename

On Thu, Aug 21, 2008 at 11:54 PM, Lost W.
[email protected] wrote:

i want to show the images in my snapshots directory.Please help

Posted via http://www.ruby-forum.com/.


Zhao