Add Support for Nested Params Parsing in Rack::Request
Adding ticket for conversation going on at:
The conversation covers numerous topics so this ticket reflects specifically the proposal for parsing nested params.
To clarify, request params, when encoded in application/x-www-form-urlencoded, can be specified simply as a=b&x=y (flat) as well as a[b]=c&a[d]=e (nested) values.
The proposal is to include parsing these nested values into a
Hash instead of just including top-level keys as
Refer to the RFC for the specification of a query as between the @?@ and the @#@ of the URL:
Unfortunately, the RFC does not specify further regarding nested pairs.
Michael Fellinger (manveru) provided this implementation:
Comments and changes to this ticket
- Milestone set to 1.0
We really need Rack to support this. Rails, Merb, Ramaze, and Sinatra all need to implement it themselves. This should not be an extension or a flaggable option either.
Not to get all Railsy, but it would be nice if we picked an implementation that is compatible with Rails and keeps all our tests passing :) Yehuda said something about Merb's doing different things at deeper nesting levels.