options[:only] = [:id, :name]
Replacing the array with whatever fields you want to restrict the representation to.
A couple of the other examples out there break the
:indexXML representation because they don't pass on the upstream
options. This one is kind to REST.