16. 10. 2007 23:02
$urlArgs = 'key1=value1&key2=value2' $params = Hash[*$urlArgs.split(/&/).map{|kv| kv.split(/=/)}.flatten]