Here my code
class SendMessageWorker < BackgrounDRb::Worker::RailsBase
def do_work(args)
# This method is called in it’s own new thread when you
# call new worker. args is set to :args
@sms2=SendMessageDetail.find_by_send_message_id(args)
@sms2.each do |send_msg| @sms2
.
.
…
some of my logic
end
problem is for loop…
if i excute this code, its telling each is undifined methiod.
If i am executing without for loop its working fine.
please help me…
On 12 Mar 2007, at 10:23, selvaraj wrote:
.
.
...
some of my logic
end
problem is for loop…
if i excute this code, its telling each is undifined methiod.
If i am executing without for loop its working fine.
I think you want find_all_by_send_message_id
Jonathan del Strother wrote:
On 12 Mar 2007, at 10:23, selvaraj wrote:
.
.
...
some of my logic
end
problem is for loop…
if i excute this code, its telling each is undifined methiod.
If i am executing without for loop its working fine.
I think you want find_all_by_send_message_id
ya i got it.
many thanks for yr reply