Hi,

> cgi["name"]       # => "value"
> cgi["name"].to_a  # => ["value"]

> cgi["name"]       # => "value1\0value2\0value3\0"
> cgi["name"].to_a  # => ["value1", "value2", "value3"]

and, 

cgi["name"].size   # how many values (1,2,3... or 0,1,2...)

These mean the next thing.

if 2 <= cgi["name"].size   # or, if 1 <= cgi["name"].size
  cgi["name"].each() do |value|
    foo(value)
  end
else
  foo(cgi["name"])
end

How about?

(I may not understand discussion, because I am weak in English.)


-- 
Wakou Aoyama  <wakou / fsinet.or.jp>