Displaying 1 result from an estimated 1 matches for "shifet".
Did you mean:
shiftet
2007 Feb 01
2
file_column 2nd try....
...image).first
if img.columns >= img.rows
ratio = img.columns.to_f / 600
else
ratio = img.rows.to_f / 450
end
self.width = ((img.columns / ratio)+10).to_i
self.height = ((img.rows / ratio)+10).to_i
end
end
So, this isn?t working...in fact I would be surprised if it would be
that easy, as I just shifet code away from the controller to the worker...
Ok:
when submitting the uploadform at least the worker get fired and passed
the args as expected, as I can see in the backgroundrb_server.log:
20070201-10:47:29 (53830) Starting worker: image_worker upload_img
(image_worker_upload_img)
(imagecrea...