I have created this hash from scraped xml data I have retrieved from the web. My next task is to insert this data into a postgresql database where each key is a different column, and I have drawn a blank. Any help is appreciated. Thanks in advance.
temp = @ttc.css('vehicle').map do |vehicle|
{
id: vehicle.attributes["id"].value,
routeTag: vehicle.attributes["routeTag"].value,
lat: vehicle.attributes["lat"].value,
lon: vehicle.attributes["lon"].value
}
end
hstore.