How to remove some data form REST xml output?

When user requsts a record, rails will put everything into xml output. How to remove some junk data?


If you can't clear out enough "junk" with the to_xml options:

then override to_xml on your model to produce the xml you want... probably with builder. You can also make a builder rxml template and have the controller render that instead.


Datou wrote:

aha, i can use "kip_instruct => true, :except => [ ... ]".

Thank you very much!!