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.
on 2009-04-13 21:59
on 2009-04-14 00:18
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
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?