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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -