Created
November 2, 2009 20:14
-
-
Save newtonapple/224421 to your computer and use it in GitHub Desktop.
Rails like params hash from URL encoded strings.
This file contains 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
ActionController::AbstractRequest.parse_query_parameters('foo[foo][0]=99') # => {"foo"=>{"foo"=>{"0"=>"99"}}} | |
ActionController::AbstractRequest.parse_query_parameters('foo[foo][]=99') # => {"foo"=>{"foo"=>["99"]}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment