Can't display images

doucie wrote:

I have the following in my view -

<td>   <img class="list-image" src="<%= product.image_url %>"/>   </td>

image_url being a field in the database.

No matter what I change the url to or where I save the images nothing is displayed.

By the way I'm following the 'depot' project in Agile Web Development with Rails Can anyone help?

When you use the above code what is the resulting src=" "? Where are you storing the image?

Matthew Margolis blog.mattmargolis.net

doucie wrote:

Matthew Margolis wrote:   

doucie wrote:     

By the way I'm following the 'depot' project in Agile Web Development with Rails Can anyone help?

When you use the above code what is the resulting src=" "? Where are you storing the image?

Matthew Margolis blog.mattmargolis.net      No sure what you mean by 'what is the resulting src=" "?' I've tried storing the images in the public image folder within my project and just in c:\

Look at the source code of the page after you go to it and see what rails put in for product.image_url. Your images should be in the public/images folder of your project.

Matthew Margolis blog.mattmargolis.net