Forum: Ruby on Rails xml special characters

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Grayson P. (Guest)
on 2009-02-07 02:37

I need to produce XML that looks like this

          <title>Image Title</title>
          <media:description>Description of my Image</media:description>
          <media:content url="" />
url="" />

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.photo_url
        xml.guid photo.photo_url
        xml.description h(
        xml.content photo.photo_url
        xml.thumbnail photo.photo_url

Any way to escape it?

This topic is locked and can not be replied to.