HH ïèøåò:> <itunes:author>
>
> Well, the builder code:
>
> xml.itunes:author "Test"
>
> Of course doesn''t work since it doesn''t like the colon.
>
> How can I get this to work? I haven''t had a lot of luck with the
builder
> doco so any help is appreciated very much.
>
First, Xml builder is a part of ActiveSupport library. You can find some
documentation in RDocs.
Then, it has method "tag!" that recieves a tag name as first argument:
xml.tag! "itunes:author", "Test"
And at last, builder has a nice patch, that allows to treat tag name
(the method that you call on "xml" object) as a namespace if first
argument is a symbol (which will become a tag name):
xml.itunes :author, "Test"
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---