Forum: Ruby on Rails Include image in rss feeds?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
31504027ce868ff17c0c5b6155fba305?d=identicon&s=25 Bontina C. (abon)
on 2007-04-29 10:37
Sorry that I'm not very familiar with rss standards.
I read rails recipe and implemented the rss example.
But now I would like to insert images in a feed.
How could this be done?

From some of feeds with images , I found them using rdf.
Any one could point some direction?
Many thanks


Abon
Bill Kocik (Guest)
on 2007-04-29 15:33
(Received via mailing list)
Depends on what you mean when you say RSS. Many people use this term
to describe all kinds of feeds. If you really mean RSS 2.0, images are
not technically supported on individual items (though they are
supported on the channel). However, typically the "description"
element of an item is XML-encoded HTML, and most folks include "img"
tags along with their text to get images into their individual items.

The RSS 2.0 spec is well defined here:
http://cyber.law.harvard.edu/rss/rss.html
(Don't ask me why it belongs to Harvard Law.)

With Atom, the story is essentially the same, except that you'll put
your HTML in either your "summary" or your "content" (or both) sub-
elements of your entry elements. Atom also supports something called
an "enclosure", but that's typically not used to embed images, it's
used to provide a link to any type of media.

The Atom spec can be found here: http://atompub.org/rfc4287.html

But to make this long story short: Use HTML with IMG tags in your
description/summary/content. :)

On Apr 29, 4:37 am, Bontina Chen <rails-mailing-l...@andreas-s.net>
This topic is locked and can not be replied to.