1

The variable @photo contains this XML:

<photo id="2733">
  <urls>
    <url type="photopage">http://www.flickr.com/photos/bees/2733/</url>
  </urls>
</photo>

I need to get its url and I tried to do that by @photo.urls.url but I couldn't. How do access http address http://www.flickr.com/photos/bees/2733/?

1 Answer 1

1

You could use the nokogiri gem. Is is made to manipulate xml documents.

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.