Displaying 1 result from an estimated 1 matches for "newerimag".
Did you mean:
newerimage
2008 Jan 17
2
Inconsistent Model creation behavior
...#####################################################
class ImagetestWorker < BackgrounDRb::MetaWorker
set_worker_name :imagetest_worker
def create(args = nil)
end
def save_image(args)
@newbook = Book.new
@newbook.comment = "hello"
@newbook.save
14 @newerimage = Image.new
15 @newerimage.user_id = args[:user_id]
16 @newerimage.uploaded_data = args[:temppath]
@newerimage.save
end
end
#####################################################################################
It will create and save the Book object without problems. Howev...