Monday, June 6, 2011

[Rails] Re: Store a whole page as html in database

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate