El Martes, 15 de Abril de 2008, Jes=FAs Gabriel y Gal=E1n escribi=F3:
> Another approach is to store it in a hash, but downcase the key before
> storing and retreiving:
>
> irb(main):001:0> h =3D {"get" =3D> "value_for_get", "post" =3D> "value_fo=
r_post"}
> =3D> {"get"=3D>"value_for_get", "post"=3D>"value_for_post"}
> irb(main):002:0> method =3D "gEt"
> =3D> "gEt"
> irb(main):003:0> h[method.downcase]
> =3D> "value_for_get"

Thanks, but the problem is exactly the opposite: I receive a request that c=
an=20
contain parameter name in low or uppercase, and I need to process them but=
=20
keeping them untouched to forward the request to other location.

Thanks a lot.

=2D-=20
I=F1aki Baz Castillo