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" />
</item>
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
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---