I'm writing a Restful service that should map a pre-existing partially restful site.
What I find confusing is how to display models in my views. I'm writing all XML in builder using the respond_to API, but everything I found on the net uses the to_xml method of model's instances, and that's not my case because I don't want to display every attribute of my models.
Problem is that to_xml for example gives type informations for most (not all) attributes.
Is there a place where this is documented ? How should I write my builder views ? Try a to_xml and rewrite ? Ouch ...
TIA, much appreciated,