Created
August 31, 2014 11:21
-
-
Save ardian/ee5b9ad606ca6cde8b12 to your computer and use it in GitHub Desktop.
Feedzirra
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'feedzirra' | |
class TestfeedsController < ApplicationController | |
def index | |
feed_urls = ["http://feeds.feedburner.com/PaulDixExplainsNothing"] | |
feeds = Feedzirra::Feed.fetch_and_parse(feed_urls) | |
@entry = feeds.entries | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<%= @entry %> | |
<%@entry.each do |t|%> | |
<li> | |
<%= link_to "#{t.title}", "#{t.url}",:target => "_blank" %> | |
<%=t.author%> | |
<%=t.content%> | |
<%=t.published%> | |
<%=t.categories%> | |
</li> | |
<%end%> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment