Rails impossible to get post response in rack middleware -
i made rails 3 rack middleware log users actions request = rack::request.new(env).
so send database request.fullpath , request.user_agent, detailed below:
my issue appears want post response (to ids, people name extracted json payload ...).
so response = rack::response.new(request.path). when print response.body, have request.path, , request.params not contain ...
by looking @ response firebug, can see data want.
thanks responses.
problem resolved !
i add status, headers, body = @app.call(env) middleware , send body variable service. each post request, body contains post response want.
Comments
Post a Comment