Wednesday, May 04, 2016

RailsCast Episode 168

The name of the gem has been changed. Here is the same code from the gem home page.

gem install feedjira




url = "http://feedjira.com/blog/feed.xml"
feed = Feedjira::Feed.fetch_and_parse url
feed.title
entry = feed.entries.first
entry.title
entry.url

No comments:

Post a Comment