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
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
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
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
4 matches
Mail list logo