Nested Resources and bespoke XML/JSON Issues

I’m having some trouble with getting nested resources working properly
from
bespoke XML/JSON in RESTful API. There seems to be some fundamental
problems with the way rails works, which means we may have to write a
lot
of bespoke code to get it working, possibly even having to monkey patch
Rails itself.

I’ve written an example rails app that highlights the problem and put a
detailed description of the problem in the README you can find it here:

I can’t imagine that no-one else has run into this issue before. I hope
that this is a hole in the documentation rather than a restriction in
rails
itself.

Do you guys have any thoughts?

Regards

Martyn