From: Jason Roelofs Date: 2006-12-22T00:47:44+09:00 Subject: Re: Symbols vs Strings ------=_Part_47692_25354931.1166716062496 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline This is why Rails has HashWithIndifferentAccess, it internally treats Symbols and Strings as the same. Jason On 12/21/06, Jeremy Wells wrote: > > Devin Mullins wrote: > > matt wrote: > > > >> How do I know that I need to use :blah, and not some other symbol ? > > Convention. You're just passing a Hash, and Rails cares about certain > > key/value pairs in that Hash. > I think that rails basically converts all hash keys into symbols > automatically using Hash.symbolize_keys!, so you could pass a string or > a symbol, but passing a symbol would be faster. > > ------=_Part_47692_25354931.1166716062496--