search for: search_work

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

Did you mean: search_more
2006 Sep 05
2
question about passing array of AR objects to worker
...s attr_reader :resources def do_work(resources) logger.info resources.inspect end end class SearchController < ApplicationController def start_search @resources = Resource.find(:all) logger.info @resources.inspect session[:job_key] = MiddleMan.new_worker(:class => :search_worker, :args => @resources) end end class Resource < ActiveRecord::Base include DRbUndumped # attribute, "uri", string end now, my controller logs the array as: [#<Resource:0xb79d9f58 @attributes={"uri"=>"http://www.google.com/search?hl=en&q=ruby+on+rai...