hi, all,
I have a problem with image_tag, the url it generates keeps adding ??? at the tail.
e.g. src=“/images/gicon.jpg?1153577588???” src=“/images/gicon.jpg?1153577588???”
I’ve checked the source code of image_tag, and couldn’t find any solution. The ??? is appended to the “source” parameter before it goes to the real image_tag code.
def image_tag(source, options = {})
puts source # already ????? here
options.symbolize_keys!
options[:src] = image_path(source)
options[:alt] ||= File.basename
(options[:src], ‘.*’).split(‘.’).first.capitalize
if options[:size]
options[:width], options[:height] = options[:size].split("x")
options.delete :size
end
tag("img", options)
end
I couldn’t debug further because I couldn’t find where the image_tag was invoked. I think maybe it’s caused by encoding problem because I use utf8 as the default encoding for the project.
Anyone has a solution?
Best Regards,
Zhenjian