Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash parameters #5

Open
testinfected opened this issue Mar 2, 2014 · 0 comments
Open

Hash parameters #5

testinfected opened this issue Mar 2, 2014 · 0 comments
Labels

Comments

@testinfected
Copy link
Owner

Provide a middleware that converts request parameters to (nested) hashes when appropriate.

So:

client[name]="Acme"
client[phone]="123-456-7890" 
client[address][postcode]="A1Z 9A9"
client[address][city]="City"

is available as:

request.parameter("client") -> { 
  "name" = "Acme", 
  "phone" = "123-456-7890", 
  "address" = { 
    "postcode" = "A1Z 9A9", 
    "city" = "City" 
  } 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant