From: rubythemystery ruby Date: 2011-12-10T05:42:19+09:00 Subject: Can't convert String into Integer Hi all, Using Httparty, I get the following response @parsed_reponse = > {"items" => {"@no" => "1", "@type" => "book", "@category" => "GENERAL" }} when i use the following code to access "@no", I am getting the following error Can't convert String into Integer r = @response.parsed_response["items"]["@no"] can anyone help on this, I do get Can't convert String into Integer or undefined method `[]' for nil:NilClass (NoMethodError) can anyone explain this with an example -- Posted via http://www.ruby-forum.com/.