Attachment_fu && image caching

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 “. 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=”<%[email protected]_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.

On Aug 31, 10:37 am, Valery K. [email protected] wrote:

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 ". I suppose that
digits after the ‘?’ is caching stuff. (?)

the digits are a timestamp for the file (so that if the file has
changed the browser is forced to re-request it

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="<[email protected]_filename
%>, thats a problem.

Have you checked the output to see if that’s generating the img tag
you would expect?

Fred

On 31.08.2008, at 16:58, Frederick C. wrote:

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="<
[email protected]_filename
%>, thats a problem.

Have you checked the output to see if that’s generating the img tag
you would expect?

Yes! the pure generates exactly I need - filepath without
timestamps and application works fine in all browsers.