From: Cere Davis Date: 2004-02-14T08:44:54+09:00 Subject: Re: cgi params in ruby Thank you both for helping me with this. This an error I am doomed to repeat I'm afraid because I understand Hash.map and join systax (and didn't think it existed because ri didn't list it under the Hash method). Hash.map would map to an array of key val pairs I suppose...where val would be an array still. Then text fields get generated with
... Then when I .join it's doing what? Thanks. >> > # use Hash#map(), which passes keys and values > >> cgi.params.map {|key, val| >> cgi.text_field(key, val.to_s) + >> cgi.br >> }.join + # and join the result before moving on >> cgi.submit("Okey Dokey?") >>