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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Nick H. (Guest)
on 2009-04-02 18: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

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


This topic is locked and can not be replied to.