Recently I got my first approach working!
I only had to edit the following (this_here)to call my method out of
my controller:
def checkall
#check all entries for updates as delayed_job
this_here = MyController.new
this_here.create_report #run my method below asynchronously
end
def create_report
#this creates my report, but not working delayed!
end
handle_asynchronously :create_report, :priority => 3
I don't know if this is good coding, but it is working!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.