# Need a little push in the right direction. @prices = [ "amazon_new" => [ "image" => "imageurl.com", "url" => "bookurl.com", "price" => 45.55 ], "amazon_used" => [ "image" => "2ndImageUrl.com", "url" => "2ndbookurl.com", "price" => 67.45 ] ] @prices.each do |p| p.each do |x| x["image"] # Can't convert string into integer. end end
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d2d1f766-1af9-40a5-9d66-45b34037e5b0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.