Hello,
I need to produce XML that looks like this
<item>
<title>Image Title</title>
<media:description>Description of my Image</media:description>
<media:content url="http://www.mywebsite.com/image.jpg" />
<media:thumbnail
url=“http://www.mywebsite.com/image_thumb.jpg” />
but rails doesn’t seem to like the “:” in the following code
for photo in @photos
xml.item do
xml.pubDate photo.created_at.rfc822
xml.title h(photo.profile.name)
xml.link photo.photo_url
xml.guid photo.photo_url
xml.description h(photo.profile.name)
xml.content photo.photo_url
xml.thumbnail photo.photo_url
end
Any way to escape it?
GP