parse(query) in Ruby

By: Jeeva Printer Friendly Format    


parse(query)

Parse an HTTP query string into a hash of key=>value pairs.

  params = CGI::parse("query_string")
    # {"name1" => ["value1", "value2", ...],
    #  "name2" => ["value1", "value2", ...], ... }


Ask a Question



Most Viewed Articles (in Ruby )

Latest Articles (in Ruby)

Comment on this tutorial