[Rails] Re: what is "!map:HashWithIndifferentAccess "?

2008-10-25 Thread Robert Zotter
Guan, HashWithIndifferentAccess is just like any other hash except that the key 'somekey' will be the same as the key :somekey. For example if you have a regular hash like the following >> hash = Hash.new({:somekey => 'testing'}) >> hash[:somekey] => testing >> hash['somekey'] => nil Notice how

[Rails] Re: what is "!map:HashWithIndifferentAccess "?

2008-10-25 Thread Frederick Cheung
On 25 Oct 2008, at 15:05, Zhenning Guan wrote: > > I read the typo migration code file 004_add_sidebars_.rb and found > these: > > Bare4Sidebar.create(:active_position=>0, :controller=>'page', > :active_config=>'--- !map:HashWithIndifferentAccess > maximum_pages: "10"') > > I'm confuse