Thank you both for the replies. I ended up mandating all AJAX data 
transfer to use JSON format, and it works very well. Additionally, it 
turned out very easy to rewrite the stuff and add custom to_json methods 
in rails.
-- 
Posted via http://www.ruby-forum.com/.