From: "Iñaki Baz Castillo" Date: 2008-04-16T05:50:40+09:00 Subject: Re: Hash or bidimensional Array when key is case insensitive? El Martes, 15 de Abril de 2008, Jesús Gabriel y Galán escribió: > Another approach is to store it in a hash, but downcase the key before > storing and retreiving: > > irb(main):001:0> h = {"get" => "value_for_get", "post" => "value_for_post"} > => {"get"=>"value_for_get", "post"=>"value_for_post"} > irb(main):002:0> method = "gEt" > => "gEt" > irb(main):003:0> h[method.downcase] > => "value_for_get" Thanks, but the problem is exactly the opposite: I receive a request that can contain parameter name in low or uppercase, and I need to process them but keeping them untouched to forward the request to other location. Thanks a lot. -- Iñaki Baz Castillo