Hi,

"Jon Aseltine" <aseltine / surveyscience.net> wrote in message
news:3A5E9620.12FD1F52 / surveyscience.net...
> Hi,
>
> I figured that the only difference between offline and online cgi.rb had
> to be params that I was passing. So in my ruby script I added a dummy
> cgi param:
>
> cgi.params['Survey'] = ["Science"]
>
> Now all is well. Anyone know why? It has to be a bug somewhere in
> cgi.rb, but I don't know where to look.
>
> Jon
>
> --
> _______________________________________________________________________
>   Jonathan Aseltine     aseltine / cs.umass.edu     MAS, Umass, Amherst

cgi.params['Survey'] is an Array.
So if you want to assign value to variable survey, you can do like this.

survey, = cgi.params['Survey']
or
survey, = cgi['Survey']

Hee-Sob Park.