Quantcast
Channel: Parse Images With Feedjira - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Parse Images With Feedjira

$
0
0

I am using the Feedjira gem, trying to render img_src.

//My Controller

def index
  Feedjira::Feed.add_common_feed_entry_element("image")
  feed = Feedjira::Feed.fetch_and_parse("http://cltampa.com/tampa/Rss.xml?section=2065818") 
  @entry = feed.entries
end

//My View

<% @entry.each do |t|%>
   <h3><%= link_to t.title, t.url %></h3>
   <p><%= t.published %></p>
   <p><%= t.summary %></p>
<% end %>

The view displays everything correctly, just trying to figure out how to display the actual image instead of the image url. I have seen a couple posts on this, but I am a little lost. I don't quite understand what is going on under the hood, after following the docs as well. Any help is appreciated.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images