03:16
christophsturm joined
22:32
<atmos>
what's the easiest way to get the request parameters out of a rack environment ?
22:36
<hassox>
Rack::Request.new(env).params ?
22:36
<atmos>
i want them from inside a piece of middleware, in the call action
22:36
<hassox>
that's cool
22:36
<atmos>
that should work ^
22:36
<hassox>
Rack::Request.new doesn't reparse it if it's already parsed
22:36
<atmos>
worked like a charm
22:36
<atmos>
thanks again
22:36
<hassox>
pleasure :D
22:38
<atmos>
is there something similar for the session if it's enabled ?
22:38
<hassox>
you could just check env['rack.session']
22:38
<hassox>
that's the standard place to put sessions
22:38
<hassox>
there's not much point doing something like
22:39
<hassox>
env['rack.session'] ||= {}
22:39
<hassox>
but you should be able to accessit
22:40
<atmos>
cool, thanks :D
23:18
blakemizerany joined