# Can't display images

**URL:** <https://www.ruby-forum.com/t/cant-display-images/85154>\
**Category:** Rails\
**Created:** [February 10, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/cant-display-images/85154 "2007-02-10T18:18:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![doucie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@doucie](https://www.ruby-forum.com/u/doucie)\
**Post date:** [February 10, 2007, 6:18pm UTC](https://www.ruby-forum.com/t/cant-display-images/85154/1 "2007-02-10T18:18:59Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![doucie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@doucie](https://www.ruby-forum.com/u/doucie)\
**Post date:** [February 10, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/cant-display-images/85154/2 "2007-02-10T19:04:37Z")

</div>

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](http://blog.mattmargolis.net)

---

<div class="post-metadata">

**Author:** ![doucie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@doucie](https://www.ruby-forum.com/u/doucie)\
**Post date:** [February 10, 2007, 8:11pm UTC](https://www.ruby-forum.com/t/cant-display-images/85154/3 "2007-02-10T20:11:12Z")

</div>

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](http://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:\

---

<div class="post-metadata">

**Author:** ![doucie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@doucie](https://www.ruby-forum.com/u/doucie)\
**Post date:** [February 10, 2007, 8:16pm UTC](https://www.ruby-forum.com/t/cant-display-images/85154/4 "2007-02-10T20:16:43Z")

</div>

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](http://blog.mattmargolis.net)

---

<div class="post-metadata">

**Author:** ![doucie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/71c47a/32.png) [@doucie](https://www.ruby-forum.com/u/doucie)\
**Post date:** [February 10, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/cant-display-images/85154/5 "2007-02-10T20:25:01Z")

</div>

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](http://blog.mattmargolis.net)

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

Should have been just \images\car.jpg
