Hi,
I am trying to create an ActiveResource model from a REST API with a
XML structure as follows:
<document>
<elements>
<element name="title" >Dragon Stories</element>
<element name="lang" >en</element>
<element name="region" >UK</element>
</elements>
</document>
The ActiveResource model I get from consuming the source approve
misses the values of the name attributes, however, and return a flat
array:
#<Document:0x10525a408
@attributes={"elements"=>#<Document::Elements:
0x105251240 @attributes={"element"=>["Dragon Stories",
"en", "UK"]},
@prefix_options={}>}, @prefix_options={}>
How can I fix this?
Thanks + kind regards,
Boris
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.