Re: Merging params into another hash

Phillip Koebbe
Fri, 28 Dec 2007 22:45:25 -0000

On Dec 28, 2007, at 3:43 PM, Mark Wilden wrote:

>
> On Dec 28, 12:17 pm, Phillip Koebbe
<phillipkoe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
>> params is a HashWithIndifferentAccess while my session
>> [:people_search] was just a plain old Hash.  When I changed the
>> instantiation of session[:people_search] to
>> HashWithIndifferentAccess, it works.
>
> Just for my education, would changing the keys from symbols to strings
> also have worked?

Well, apparently for my education, too.  Changing the keys from
symbols to strings does, in fact, work.

Why?

Phillip