Displaying 1 result from an estimated 1 matches for "upload_img".
Did you mean:
upload_id
2007 Feb 01
2
file_column 2nd try....
...I have to prefix that I am far away from fully understanding the overall
concept yet, and there?s no way to get some hints in the www so far, at
least my resaerches dont lead to any helpfull stuff.
image_controller.rb:
def create
MiddleMan.new_worker :class => :image_worker,
:job_key => :upload_img,
:args => { :image => params[:image]}
worker = ::MiddleMan.worker(:upload_img)
end
image_worker.rb
require ''RMagick''
class ImageWorker < BackgrounDRb::Worker::RailsBase
##attr_accessor :text
def do_work(args)
##@text = args[:text]
@image = Image.new(args[:image])
@im...