Forum: Ruby on Rails Loop and parse each rss feed url

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7af028825f6c0f24554c69b2c93729a0?d=identicon&s=25 Nick Hoyle (hoylen)
on 2009-04-02 16:06
I am attempting to parse mutiple rss feed url's which are pulled from a
database, to parse the feeds im using simple rss.

so eg an active record query such as  rssfeed = Rssfeed.find(:all)

This probalay needs to be more refined such as just grabbing the
feed_url rather than all the attributes but anyway this grabs on the rss
feed urls.

for each of the urls i have stored in rssfeed variable i want them to
loop through each one parsing it and storing it so i can display them in
a view.

this is the process for parsing the feed

SimpleRSS.parse open(rssfeed.feed_url)

Now ive attemtped placing it inside for loops and for each do etc had no
luck.

Has anyone got any suggestions on how this can be looped through and
stored?

Regards

Nick
This topic is locked and can not be replied to.