Displaying 1 result from an estimated 1 matches for "workshopimag".
Did you mean:
workshopimage
2006 May 17
0
send_data not working properly with link_remote_to
...;></div>
controller:
def flip
filename="/public/picture/filename/1/scaler_1.jpg"
img=File.read(filename)
ilist = Magick::ImageList.new
@picture=ilist.from_blob(img)
@picthumb=@picture.flip!
@out=@picthumb.to_blob
send_data(@out,:filename =>''workshopimage'', :type => "image/png",
:disposition => "inline")
end
the above doesnt work
but with my view as
<%= link_to("flip",
:action => "flip"
)%>
it works....so doesnt it mean i need to do some thing more incase of an
ajax call ....