开发者

ruby on rails xml builder question

Anybody know how to produce an xml element like this in rails using xml Builder?

<image:loc>开发者_Go百科;http://example.com/image.jpg</image:loc>

xml.image :loc http://example.com/image.jpg

Is supposed to work but doesn't.


You're pretty close, but the correct syntax is:

xml.image :loc, "http://example.com/image.jpg"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜