As I understand it, things like HashwWithIndifferentAccess are
''historical'',
so you should use symbols for your own things (unless you are hvaing to
merge your arrays with others of that type..messy!).
Joshua
On 8/7/05, Michael Schuerig
<michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org>
wrote:>
>
> I just don''t get it :-( Looking at the Rails sources, sometimes
hash
> keys are normalized to strings (stringify_keys), sometimes to symbols
> (symbolized_keys), and at other times keys are made indifferent
> (with_indifferent_access).
>
> What''s the right way to normalize and access entries in options
hashes
> in my own helper methods?
>
> Michael
>
> --
> Michael Schuerig This is not a false alarm
> mailto:michael-q5aiKMLteq4b1SvskN2V4Q@public.gmane.org This is not a test
> http://www.schuerig.de/michael/ --Rush, Red Tide
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails