1

Anybody know how to produce an xml element like this in rails using xml Builder?
<image:loc>http://example.com/image.jpg</image:loc>

xml.image :loc http://example.com/image.jpg
Is supposed to work but doesn't.

1 Answer 1

3

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

xml.image :loc, "http://example.com/image.jpg"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.