# RSS feed consumption

**URL:** <https://www.ruby-forum.com/t/rss-feed-consumption/165421>\
**Category:** Rails\
**Created:** [April 13, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/rss-feed-consumption/165421 "2009-04-13T21:59:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [April 13, 2009, 9:59pm UTC](https://www.ruby-forum.com/t/rss-feed-consumption/165421/1 "2009-04-13T21:59:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [April 14, 2009, 12:18am UTC](https://www.ruby-forum.com/t/rss-feed-consumption/165421/2 "2009-04-14T00:18:56Z")

</div>

Hi James,  
We’ve just switched to Feedzirra ([GitHub - feedjira/feedjira: A feed parsing library](http://github.com/pauldix/feedzirra))  
in  
our Kete projects ([http://kete.net.nz/](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](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

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [April 15, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/rss-feed-consumption/165421/3 "2009-04-15T18:22:41Z")

</div>

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](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?
