ruby’ists-
the old cgi library returns parameters as an array
cgi[‘k’] => [‘v’]
the new interface returns parameters as a string
cgi[‘k’] => ‘v’
but what if
http://www.foo.bar/cgi-bin/ruby.cgi?k=v0&k=v1&k=v2&k=v3
??
and
cgi[‘k’] => [‘v0’,‘v1’,‘v2’,‘v3’]
is desired??
how is this done using the new api?
-a
···
–
====================================
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ahoward@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================
thanks!
i’m sure it’s been posted somewhere - but is there any effort towards 1.8 docs
available online?
-a
···
On Tue, 11 Feb 2003, Tom Sawyer wrote:
On Monday 10 February 2003 10:34 am, ahoward wrote:
cgi[‘k’] => [‘v0’,‘v1’,‘v2’,‘v3’]
is desired??
how is this done using the new api?
i beleive:
cgi.params[‘k’]
will give you the array.
–
====================================
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ahoward@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================