title: Rails RSS builder with image, banner, logo
body: <p>I tried to create a RSS feed <strong>with image</strong> for each article and eventually <strong>a banner</strong> for Feedly and <strong>a logo</strong> but I struggle to do that.</p>
  
  <p>Here is the preview of what I get :
  <a href="https://i.stack.imgur.com/OpWtZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OpWtZ.png" alt="Feedly preview"></a></p>
  
  <p>Here is my RSS Builder:</p>
  
  <pre><code>#encoding: UTF-8
  
  xml.instruct! :xml, :version =&gt; "1.0"
  xml.rss :version =&gt; '2.0', 'xmlns:atom' =&gt; 'http://www.w3.org/2005/Atom', 'xmlns:media' =&gt; 'http://search.yahoo.com/mrss/' do
    xml.channel do
      xml.title "My RSS feed"
      xml.description "Super description"
      xml.link "MY_URL"
      xml.language "en"
      xml.tag! 'atom:link', :rel =&gt; 'self', :type =&gt; 'application/rss+xml', :href =&gt; "MY_URL/feed"
  
      for article in @articles
        xml.item do
          xml.title article.name
          xml.pubDate article.created_at.to_s(:rfc822)
          xml.link "MY_URL"
          xml.guid "MY_URL"
  
          xml.media(:content, :url =&gt; article.image.url(:medium))
          xml.media(:thumbnail, :url =&gt; article.image.url(:thumbnail))
          xml.description "&lt;p&gt;" + article.description + "&lt;/p&gt;"
  
        end
      end
    end
  end
  </code></pre>
  
  <p>And here is the result:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/"&gt;
    &lt;channel&gt;
      &lt;title&gt;My RSS feed&lt;/title&gt;
      &lt;description&gt;Super description&lt;/description&gt;
      &lt;link&gt;MY_URL&lt;/link&gt;
      &lt;language&gt;en&lt;/language&gt;
      &lt;atom:link rel="self" type="application/rss+xml" href="MY_URL/feed"/&gt;
      &lt;item&gt;
        &lt;title&gt;Dojo&lt;/title&gt;
        &lt;pubDate&gt;Mon, 23 Nov 2015 16:58:41 +0000&lt;/pubDate&gt;
        &lt;link&gt;MY_URL&lt;/link&gt;
        &lt;guid&gt;MY_URL&lt;/guid&gt;
        &lt;media:content url="MY_URL"/&gt;
        &lt;media:thumbnail url="MY_URL"/&gt;
        &lt;description&gt;&amp;lt;p&amp;gt;Your security &amp;amp; privacy advisor.&amp;lt;/p&amp;gt;&lt;/description&gt;
      &lt;/item&gt;
  &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>Thanks for your help with that!</p>