Hi,
I’m trying to get
with RXML.
xml.a(‘foo’) {
xml.b(‘bar’)
}
complains about contents and blocks not being usable together.
I think my XML is valid though. Is there a way to do this, or to trick
RXML ?
Jean-Christophe M.
Hi,
I’m trying to get
with RXML.
xml.a(‘foo’) {
xml.b(‘bar’)
}
complains about contents and blocks not being usable together.
I think my XML is valid though. Is there a way to do this, or to trick
RXML ?
Jean-Christophe M.
I think something like this should work:
xml.a {
xml.text! ‘foo’
xml.b(‘bar’)
}
The text! method sets the arg as text content of the element…
b
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs