Hi , thankq to all,
every solution is working
but the problem is am not getting in order means
getting result is
{"w"=>["cie201"], "x"=>["i8"], "y"=>["i58", "i6", "v5"], "z"=>["ci5",
"i63"]}
but actual order of the elements placed is
@results = [{"x"=>"i8"}, {"y"=>"i58"}, {"y"=>"i6"}, {"y"=>"v5"},
{"z"=>"ci5"}, {"z"=>"i63"}, {"w"=>"cie201"}]
so i want the order is
{ "x"=>["i8"], "y"=>["i58", "i6", "v5"], "z"=>["ci5",
"i63"],"w"=>["cie201"]}
--
Posted via http://www.ruby-forum.com/.