Re: [Rails] hash string to symbol

2010-04-05 Thread Philip Hallstrom
On Apr 5, 2010, at 7:36 PM, Me wrote: I found a method to convert the keys that are string to symbols. I included the file in the lib directory but when I call it it says it does not recognize the method. Ideas? class Hash # Recursively replace key names that should be symbols with symbols.

[Rails] hash string to symbol

2010-04-05 Thread Me
I found a method to convert the keys that are string to symbols. I included the file in the lib directory but when I call it it says it does not recognize the method. Ideas? class Hash # Recursively replace key names that should be symbols with symbols. def key_strings_to_symbols! r = Ha