Hi People,
Does anyone know what the correct way of setting an attribute for an xml
element is? I know how to do it, but once I try to pass data to it, it
shows up as an empty element in de outputted xml.
What I have now is the following:
xml.InstdAmt("Ccy" => "EUR") {invoice.sum_after_tax}
Which outputs:
<InstdAmt Ccy="EUR"></InstdAmt>
I know for sure the data is there, because when I remove the setting of
the attribute it turns up.
Many thanks,
Danny
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.