Re: [Rails] Re: controller request.body?

2010-04-17 Thread Rick DeNatale
On Fri, Apr 16, 2010 at 9:16 PM, Me wrote: > StringIO#request.body  says StringIO in the log file. > > On Apr 16, 7:40 pm, Rick DeNatale wrote: >> On Fri, Apr 16, 2010 at 8:34 PM, Me wrote: >> > I am trying to get the body of the request coming in to the >> > controller.  request.body is a Strin

Re: [Rails] Re: controller request.body?

2010-04-17 Thread Chris Habgood
I can do request.inspect and see what comes in, but the text is not there it seems to be embedded somewhere. On Sat, Apr 17, 2010 at 06:38, Vladimir Rybas wrote: > See request.methods to find what you want. Or just use debugger. > > def index >debugger >... > end > > $ rdebug script/serve

Re: [Rails] Re: controller request.body?

2010-04-17 Thread Vladimir Rybas
See request.methods to find what you want. Or just use debugger. def index debugger ... end $ rdebug script/server when it stops first time after run > c[Enter] then go to your action with browser, and the server will stop on the 'debugger' method position. Then you just run > irb[Enter] a

[Rails] Re: controller request.body?

2010-04-16 Thread Me
StringIO#request.body says StringIO in the log file. On Apr 16, 7:40 pm, Rick DeNatale wrote: > On Fri, Apr 16, 2010 at 8:34 PM, Me wrote: > > I am trying to get the body of the request coming in to the > > controller.  request.body is a StringIO object.  I cannot seem to see > > what is actual