鉴于:
hash = { "value" => 4, "details" => "I am some details"}, {"value" => 5, "details" => "I am new details"}
我可以做类似的事情:
hash.each do |key, value|
puts "#{key} is #{value}"
end
得到类似的东西:
{ "value" => 4, "details" => "I am some details"} is {"value" => 5, "details" => "I am new details"} is
如果哈希表(地图)不是我想要做的,那会是什么?数据库是不可能的。{}
如果用户需要填写与前两个相同的详细信息,用户应该能够继续添加到另一个。