# Strange Rendering with img\_tag

**URL:** <https://www.ruby-forum.com/t/strange-rendering-with-img-tag/110123>\
**Category:** Rails\
**Created:** [July 23, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/strange-rendering-with-img-tag/110123 "2007-07-23T15:52:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 23, 2007, 3:52pm UTC](https://www.ruby-forum.com/t/strange-rendering-with-img-tag/110123/1 "2007-07-23T15:52:39Z")

</div>

I need some advice on img\_tag()  
I checked in the console, and the file name of the image is stored  
correctly.

> > puts a.file\_name  
> > dog\_whisper\_lowres.jpg

The file is stored on the file system itself. In public/images/

However, when the page is rendered, there is a strange string appended  
to the image name in the img element, like so:  
 ![Dog_whisper_lowres](https://test.ruby-forum.com/images/dog_whisper_lowres.jpg?%0A1185178783)

My rhtml is this:  
\<%= image\_tag("/images/#{@asset.file\_name}") %\>

Am I missing something in the img\_tag function?  
I just noticed this today. The images render fine in a web browser,  
but that certainly isn’t what I want to have in my html!

Any ideas from anyone?

John J.
