#!/usr/bin/ruby
#hash_of_hash.rb

list={"app1"=>101,"app2"=>104,"app3"=>109,"app4"=>123}

h=Hash.new{ |h,id| h[id]=Hash.new{ |h,dt| h[dt]={} }}
h["company"]["products"]=list
puts h

# we know this is hash of hash.
# I want to store that hash thing in (postgreSQL) database.
# share you points to store it.

-- 
Posted via http://www.ruby-forum.com/.