Skip to content

Instantly share code, notes, and snippets.

@bluehallu
Created October 22, 2013 03:49
Show Gist options
  • Save bluehallu/7094935 to your computer and use it in GitHub Desktop.
Save bluehallu/7094935 to your computer and use it in GitHub Desktop.
xml = params[:upload]
xml = Nokogiri::XML(xml)
xml.xpath('//movie').each do | movie |
#wanna create a Movie instance here
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment