From: Paul Battley Date: 2006-03-15T18:09:27+09:00 Subject: Re: Building querystrings with ruby 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("&") Paul.