You are right, by default Restfulie + Tokamak is not adding the
type="array" when rendering an array in order to be Rails-agnostic (a
resource representation should not depend on Rails's standards to be
understood: the type="array" is a Rails thing, not a xml one).
But as you mentioned it does not help if you are using it on the client side.
We can change this behavior by updating the members method here:
https://github.com/caelum/restfulie/blob/master/lib/restfulie/common/converter/xml/builder.rb
So the members method would attach a type="array" attribute, what do you think?
Regards
Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/
Sure. It makes sense, do you want to suggest a way to invoke the
method? We can do it. Only for xml based representations ? Does it
make sense for json?
Regards
Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/