views:

41

answers:

1

rack.request.form_input isn't in my env variable--what's going on?

anyone??

+1  A: 

Use Rack::Utils to parse the incoming request's body (otherwise form_input is not created).

Konstantin Haase
What part of Rack::Utils should I use?
aharon
Sorry, I was wrong. It was `Rack::Request`. Do a `Rack::Request.new(env).POST` once and it will set `rack.request.form_input`, `rack.request.form_hash` and `rack.request.form_vars`
Konstantin Haase
nice. thanks so much!
aharon