Re: Error: SQLite3::TooBigException: String or BLOB exceeded size limit

Lasse
Tue, 26 Jan 2010 13:18:09 -0000

This is how the arrays where created. It''s data recieved out of a
HTTP. Response


#send request to WRTS API
		Net::HTTP.start(''www.wrts.nl'') {|http|
		req = Net::HTTP::Get.new(''/api/lists'')
		req.basic_auth login, password
		response = http.request(req)
		@xml_data = (response.body)}
	#Parse Response
		doc = REXML::Document.new(@xml_data)
		titles = REXML::XPath.match( doc, "/list-index//list/title/text()" )
		ids = REXML::XPath.match( doc, "/list-index//list/id/text()" )
		titles.to_s
	#convert id into link
		links = ids.map do |id|
		"http://www.wrts.nl/lijst/overnemen/#{id}"
		end


--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org