开发者

Rails to_xml override

If y开发者_运维知识库ou have an array in Rails, to_xml will nest each object under a 'records' tag. Is there a way to override this to name it something else?


my_array.to_xml :root => 'foos'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜