Bruce Williams <bruce / codedbliss.com> wrote:
> A common 'gotcha' with cgi.rb is the fact that CGI#params is a Hash of Arrays, 
> not just a simple Hash. In most cases to access data you'll want to something 
> like:
>        <%= params['foo'][0] %>

Another funny thing: If you use multipart-requests (file upload)
the "normal" (non-file parameters) are objects of a Tempclass
subclass, too. The example then has to be

        <%= params['foo'][0].read %>

Maybe it's a good idea to write some kind of a wrapper when you
have pages with file uloads and some without it.