# File\_column shows path to the public

**URL:** <https://www.ruby-forum.com/t/file-column-shows-path-to-the-public/88739>\
**Category:** Rails\
**Created:** [March 13, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/file-column-shows-path-to-the-public/88739 "2007-03-13T23:18:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surfman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@surfman](https://www.ruby-forum.com/u/surfman)\
**Post date:** [March 13, 2007, 11:18pm UTC](https://www.ruby-forum.com/t/file-column-shows-path-to-the-public/88739/1 "2007-03-13T23:18:28Z")

</div>

I am using

\<% @entry = Entry.find(params[:id]) %\>  
\<%= image\_tag url\_for\_file\_column(‘entry’, ‘image’) %\>

to show image info at my view.

it will show image AND PATH TO THE IMAGE, like,  
/usr/local/my\_path\_to\_rail\_project/public/entry/entry\_id/image\_name,

How may I remove the path to the image?

Thanks.

---

<div class="post-metadata">

**Author:** ![surfman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/49beb7/32.png) [@surfman](https://www.ruby-forum.com/u/surfman)\
**Post date:** [March 13, 2007, 11:33pm UTC](https://www.ruby-forum.com/t/file-column-shows-path-to-the-public/88739/2 "2007-03-13T23:33:51Z")

</div>

My fault, the path comes from

\<% for column in Post.content\_columns %\>

**\<%= column.human\_name %\>:** \<%=h @post.send(column.name) %\>

Ignore my question please.
