search for: caches_acton

Displaying 1 result from an estimated 1 matches for "caches_acton".

Did you mean: caches_action
2006 Jun 30
0
Caching & Attachments
...e.find(params[:id]) send_data(@thePic.image.data, :filename => @thePic.image.filename, :type => @thePic.image.content_type, :disposition => "attachment") end Which works fine; it returns an image as expected, which is downloaded by the browser. When I add a declaration: caches_acton :image it continues to work fine in development, presumbably because it doesn''t cache in development mode. When I switch to production mode, however, this no longer causes the file to be downloaded to the desktop, but rather it opens up in the browser as if it were a text file. I am n...