From: marcus Date: 2005-11-09T19:56:37+09:00 Subject: Re: Better way to build string Thank you everyone. I went with this one as it was the only one who took everything into account Peter Ertl wrote: > def build_query_string(properties, prop_type) > query = properties.map {|p| "#{p.name}=#{p.value}"} > case prop_type > when "tag": (" " + query.join(" ")) > else ("?" + query.join("&")) > end > end /Marcus