Forum: Ruby on Rails RSS feed consumption.

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.
171ea139761951336b844e708d1547ab?d=identicon&s=25 James Byrne (byrnejb)
on 2009-04-13 21:59
I have a requirement to take an RRS feed into a Rails app and
automatically update a table from the data provided therefrom (foreign
currency exchange rates).  I have found the feedtools gem but this seems
to be a little old and shows no sign of recent activity.  Is there
anything else that is current, works with Rails 2.3 and is presently
favoured by the community?

Are there any good Ruby / Rails code examples of this sort of thing that
people could recommend?  I have zero experience with this aspect of the
web.
A39970d780c506b26e9a8b71eda13df2?d=identicon&s=25 Walter McGinnis (Guest)
on 2009-04-14 00:18
(Received via mailing list)
Hi James,
We've just switched to Feedzirra (http://github.com/pauldix/feedzirra)
in
our Kete projects (http://kete.net.nz/).  We use it in a couple places.
A
Feed model which is aimed at pulling in user configurable feed content
at a
set schedule and caching it and on Kete item detail pages where we use
SearchSource model to define base URLs for search source that will
return
results in feed form which we then display.

For the latest in Kete, check out this branch:

http://github.com/kete/kete/tree/1-3-prep-work

Feedzirra is in turn based on Nokogiri XML gem.  We've found Feedzirra
to be
a bit more feature complete and way faster than feeds_normalizer gem.

Cheers,
Walter
171ea139761951336b844e708d1547ab?d=identicon&s=25 James Byrne (byrnejb)
on 2009-04-15 18:22
I thought that I would first try out activeresource manually and
discover how things are done. I have a valid RSS feed from the Bank of
Canada that I wish to pull from. I have defined my class as:

class ForexCASource < ActiveResource::Base
  self.site = 'http://www.bankofcanada.ca/rss/fx/noon/fx-noon-all.xml'
end

Inside the console I try to do this:

>> forex = ForexCASource.find
or
>> forex = ForexCASource.find(:all)

and I receive a 404 error in both cases.

I can reach the site url given in the resource class from a Firefox
instance running on the same host using cut and paste so the url in the
site assignment is valid.

What am I missing?
This topic is locked and can not be replied to.