[Rails] Re: RSS feed consumption.

2009-04-15 Thread James Byrne

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?


-- 
Posted via http://www.ruby-forum.com/.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---



[Rails] Re: RSS feed consumption.

2009-04-13 Thread Walter McGinnis
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

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~--~~~~--~~--~--~---