SyntaxFix
Write A Post
Hire A Developer
Questions
For a pure Ruby solution combine URI.parse with CGI.parse (this can be used even if Rails/Rack etc. are not required):
URI.parse
CGI.parse
CGI.parse(URI.parse(url).query) # => {"name1" => ["value1"], "name2" => ["value1", "value2", ...] }