From: Eric Schwartz Date: 2005-11-09T04:47:12+09:00 Subject: Re: Better way to build string Eero Saynatkari writes: > Perhaps you can modify this for your needs: > > properties.inject('?') {|memo, (key, value)| memo << "#{key}=#{value}&" } FWIW, I've had a mental block about inject for some time, and this example very nicely clarified for me what it does and how. Thanks for the handy example. Note to OP: Don't forget to use CGI::escape() to properly URL-encode everything. -=Eric