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: <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> 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? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On 11/11/06, Sergio Ruiz <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > 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: > > <rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" > version="2.0"> > > 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? > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> In most cases in Rails, a string and a symbol is interchangeable. (The > second version preserves it as a symbol) > Vishsweet! that worked! thanks, vish! -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---