From: ngw Date: 2006-03-15T19:18:46+09:00 Subject: Re: Building querystrings with ruby -Paul Battley : > On 15/03/06, Paul Battley wrote: >> And this is shorter still: >> >> "?" << to_hash.map{ |kv| kv.map{ |e| CGI.escape(e) }.join("=") }.join("&") > > Ignore my stupidity above; this is shorter and less redundant: > > "?" << map{ |kv| kv.map{ |e| CGI.escape(e) }.join("=") }.join("&") Wow ! Thank you both, great snippets. ngw