Encoding itunes dtd

i found help on this forum on how to encode itunes tags (itunes:summary)
into my feed generator, but i am having one more issue…

in order to do this, i am having to use their dtd… and add this to my
header:

the line i am using in my rxml is:

xml.rss(:version => “2.0”)

but i totally can’t figure out how to add the xmlns:itunes attribute, as
the colon causes all kinds of trouble (obviously)…

anyone have any ideas?

Quote it.

xml.rss “version” => “2.0”, “xmlns:itunes” =>
http://www.itunes.com/dtds/podcast-1.0.dtd

Or even,

xml.rss “version” => “2.0”, :“xmlns:itunes” =>
http://www.itunes.com/dtds/podcast-1.0.dtd

In most cases in Rails, a string and a symbol is interchangeable. (The
second version preserves it as a symbol)
Vish

In most cases in Rails, a string and a symbol is interchangeable. (The
second version preserves it as a symbol)
Vish

sweet!

that worked!

thanks, vish!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs