Last active
December 16, 2015 22:39
-
-
Save rymawby/5508305 to your computer and use it in GitHub Desktop.
Convert query string into Hash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CGI::parse(query_string) | |
| # OR | |
| Rack::Utils.parse_nested_query(query_string) | |
| # Rack one does them more in keeping with how params is formed - CGI:parse seems to add values to an array within the hash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment