Open findchris opened 14 years ago
Forget the SystemStackError: The circular reference is probably not the way to go.
However, another question: ROXML overrides ActiveRecord's to_xml method and I was wondering if there was a way to get the XML that would be generated by ActiveRecord's to_xml() instead of ROXML's to_xml()?
Cheers
Hi there.
I have two (Rails) applications: One is using ActiveRecord, the other is not.
In the DB-backed app I have models like:
In the non-AR-based app, which will consume the XML generated from the AR-based app, I have:
The problem is, when I try to generate the XML, I (not so unexpectedly) get this:
So the question is: How to map ActiveRecord objects (with associations) to non-ActiveRecord objects using ROXML?
In the app not using ActiveRecord, I'd like to be able to go through relations, such as in:
Not sure if this is possible, but I'd appreciate your insight.
Cheers. -Chris