[rails] render :xml

R

robertj

hi,

can anybody tell me how i can configure
the xml output when using "render :xml => a_ref_list"?

i have a problem that for example the active record
property ref_id is transformed into
<ref-id> the value </ref-id>.

also i would like to have more control on what list
tags are created.
for example if i have a list of Reference objects
"render :xml => list_references" creates
<references>
<reference>
...
</reference>
<reference>
...
</reference>
</references>

thanks

ciao robertj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,676
Latest member
sjarada

Latest Threads

Top