What\'s the (fastest/cleanest/straightforward) way to convert all keys in a hash from strings to symbols in Ruby?
This would be handy when parsing YAML.
params.symbolize_keys will also work. This method turns hash keys into symbols and returns a new hash.
params.symbolize_keys