Dec 192010
 

After reading some comments in a friend’s code, I created this function to parse URL querystrings into Ruby hashes. I’m sure there are better ways of doing it, but this is what I came up with in about 20 minutes. Comments welcome.

http://www.kritikal.com/ruby/qs2hash.rb