Can't display images

I have the following in my view -

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 D.
with Rails
Can anyone help?

doucie wrote:

By the way I’m following the ‘depot’ project in Agile Web D.
with Rails
Can anyone help?

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

Matthew M.
blog.mattmargolis.net

Matthew M. wrote:

doucie wrote:

By the way I’m following the ‘depot’ project in Agile Web D.
with Rails
Can anyone help?

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

Matthew M.
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:\

doucie wrote:

When you use the above code what is the resulting src=" "?

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 M.
blog.mattmargolis.net

Matthew M. wrote:

doucie wrote:

When you use the above code what is the resulting src=" "?

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 M.
blog.mattmargolis.net

Cheers for your help, I had c:\images\car.jpg

Should have been just \images\car.jpg

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs