Hello,
I am trying to build an application that will parse thousands of XML Feeds
in continue in the back.
I really have no idea on how to do this "correctly" with Rails.
Here is my code :
class Feed < ActiveRecord::Base
def parse
# Parsing using external lib (syndication gem)
end
end
class FeedsController < ApplicationController
def parse
feed = Feed.find(params[:id])
feed.parse
end
end
So for now, if I want to parse all my feeds forever, what I have to do is to
call http://myapp/feeds/1/parse, and then http://myapp/feeds/2/parse ...
This is definetely not a good solution!
How can I use Backgroundrb to do this?
Thanks for your help!
--
Julien Genestoux
[EMAIL PROTECTED]
+1 (415) 254 7340
+33 (0)8 70 44 76 29
_______________________________________________
Backgroundrb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/backgroundrb-devel