# Using file\_column data in IMG tag

**URL:** <https://www.ruby-forum.com/t/using-file-column-data-in-img-tag/113566>\
**Category:** Rails\
**Created:** [September 1, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/using-file-column-data-in-img-tag/113566 "2007-09-01T23:03:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bchodo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/839c29/32.png) [@bchodo](https://www.ruby-forum.com/u/bchodo)\
**Post date:** [September 1, 2007, 11:03pm UTC](https://www.ruby-forum.com/t/using-file-column-data-in-img-tag/113566/1 "2007-09-01T23:03:35Z")

</div>

When I use file\_column to upload an image, it seems that the correct  
filename is saved in the database. But, when building a page from a  
record that  
contains links to the image, I get the following url when I try to use  
the :image attribute in an IMG tag:

./script/…/config/…/public/picture/image/1/FOW0038.jpg

I don’t know where all of the stuff before “public” is coming from (the  
rest of the path is fine). Does anyone have any insight?
