[Backgroundrb-devel] Inconsistent Model creation behavior

hemant gethemant at gmail.com
Thu Jan 17 06:30:15 EST 2008


On Jan 17, 2008 3:21 PM, Benjamin H. Bryant <iambenbryant at gmail.com> wrote:
> Sure, the code in the controller is:
>
>   MiddleMan.ask_work(:worker => :imagetest_worker, :worker_method
> => :save_image,  :user_id => session[:user_id], :temppath =>
> params[:newimage][:uploaded_data].path)
>

It should be:

 MiddleMan.ask_work(:worker => :imagetest_worker, :worker_method
=> :save_image, :data => { :user_id => session[:user_id], :temppath =>
params[:newimage][:uploaded_data].path} )

that :data thing is a must, your arguments aren't getting passed properly.

-- 
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org


More information about the Backgroundrb-devel mailing list