# Attachment\_fu && image caching

**URL:** <https://www.ruby-forum.com/t/attachment-fu-image-caching/147311>\
**Category:** Rails\
**Created:** [August 30, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/attachment-fu-image-caching/147311 "2008-08-30T21:50:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valery\_K](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/ee7513/32.png) [@Valery\_K](https://www.ruby-forum.com/u/Valery_K)\
**Post date:** [August 30, 2008, 9:50pm UTC](https://www.ruby-forum.com/t/attachment-fu-image-caching/147311/1 "2008-08-30T21:50:45Z")

</div>

I have a little problem:

I’m operating with attachment\_fu object (:storage =\> :file\_system),  
for instance @image.  
When I have to render it into the view, i’d like to use native helper \<  
%= image\_tag(@image.public\_filename) %\>, it generates the HTML code  
something like “ ![](https://test.ruby-forum.com/images/image.jpg?2342323). I suppose that  
digits after the ‘?’ is caching stuff. (?)  
How can I get clean filepath?. Just now i constrained to be using ‘The-  
Not-Rails-Way’: i’m ducking pure html tags \<img  
src=”\<%=@image.public\_filename  
%\>, thats a problem.

That is because my application logic needs to get in the next redirect  
action the renewed (post cropped) image, but not clean image path  
return me the previous image. Intresting that problem is actual just  
in IE and Opera. Safari and Firefox works just fine.

Thanks.
