Forum: Ruby on Rails Strange Rendering with img_tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
(Guest)
on 2007-07-23 17:52
(Received via mailing list)
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:
<img alt="Dog_whisper_lowres" src="/images/dog_whisper_lowres.jpg?
1185178783" />

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.
This topic is locked and can not be replied to.