From: Dossy Date: 2002-05-12T20:50:47+09:00 Subject: Re: cgi params api On 2002.05.12, patrick-may@monmouth.com wrote: > With multiple params, an interesting bit is that the programmer will > probably want to always code for an array. If I have a group of > checkboxes, I'd rather do: > > cgi['key'].values.each { |value| > > } cgi['key'].to_a.each { | value | ... } While #values may be more human readable, #to_a is idiomatic for Ruby programmers: we know that we expect an Array to come back. -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)