Rails 3.0 Parsing XML and Inserting into Database
问题 I'm new to Rails, and am trying to hook up my application to a third-party API (it does't have a gem or plugin for Rails). Ideally, what I want to be able to do is parse the data (I've heard good things about Nokogiri, but don't know how to use it for what I want to do do. not for lack of trying), and then insert it into the database. Could anybody provide instructions or point me in the right direction? Cheers. UPDATE: Rake Task: task :fetch_flyers => :environment do require 'nokogiri'