Rails: What's the suggested approach to retrieve xml from an outside source

Posted by Syrahn on Stack Overflow See other posts from Stack Overflow or by Syrahn
Published on 2010-12-31T20:51:32Z Indexed on 2010/12/31 20:53 UTC
Read the original article Hit count: 152

Filed under:
|

Rails newbie (though long time programmer) here. I'm writing an test app that retrieves data from several outside sources (think Twitter, RSS feeds, etc.) and under certain circumstances, it stores that data in a db (or presents it to the user). The data model and the views are trivial. What I'm having difficulty with is making the actual xml HTTP call to the outside source and deserialize the xml response so I can query/use it in my controller/helper. What library/gem should I use to accomplish this? I tried looking this up around the net, but only came up with some article from 2006 which, knowing how fast Rails has developed, might well be completely deprecated. Your help is much appreciated.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about Xml