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 "<img src="/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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 "<img src="/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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Aug 31, 10:37 am, Valery Kvon <adda...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 "<img src="/images/image.jpg?2342323">. 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="<%...@image.public_filename > %>, thats a problem. >Have you checked the output to see if that''s generating the img tag you would expect? Fred> 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 31.08.2008, at 16:58, Frederick Cheung 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="< >> %...@image.public_filename >> %>, thats a problem. >> > Have you checked the output to see if that''s generating the img tag > you would expect?Yes! the pure <img> generates exactly I need - filepath without timestamps and application works fine in all browsers. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---