forked from sinatra/sinatra
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nested params (e.g., "post[title]=Hello") [sinatra#70]
This is based largely on manveru's example implementation: http://paste.linuxhelp.tv/pastes/view/15309 NOTE: we should plan on ripping this out once nested params makes it into Rack.
- Loading branch information
Showing
3 changed files
with
79 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wahoo! you beat me to it :D I was curious as to why Rack does not facilitate this sort of functionality
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make some noise on the Rack ML and maybe we can have it in 1.0 ;)
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries this will keep me happy. Does really belong their though obviously.
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, really. Make some noise. I so want to rip this out of Sinatra.
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to remove the extension from Rails too :)
Merb and Ramaze do the same thing.
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider me as clamoring for this to end up as part of Rack as well. Pretty much every framework is doing this with parameters, so by all means, let’s stop duplicating this code.
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah wow, Rack is almost 1.0, totally strange if pretty small chunk of code like tis would not make it in, even weirder that its not already there. I could not care less if it is not the best implementation or something but it should at least be there
1fa9807
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please voice your opinion!
http://groups.google.com/group/rack-devel/browse_thread/thread/732e2c1e014bde30