Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created March 17, 2009 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/80456 to your computer and use it in GitHub Desktop.
Save mrchrisadams/80456 to your computer and use it in GitHub Desktop.
@doc = open(RAILS_ROOT + "/spec/fixtures/feeds/" + "doc_.xml")
@doc_array = (@doc/:place) each do |item|
title = (item/:placeName).inner_html.strip
description = (item/:teaser).inner_html.strip
image = (item/:image/:URL).inner_html.strip
end
@sawdays_places.image = (place/:image/:URL).inner_html.strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment