On Fri, Apr 16, 2010 at 9:16 PM, Me <chabg...@gmail.com> wrote:
> StringIO#request.body  says StringIO in the log file.
>
> On Apr 16, 7:40 pm, Rick DeNatale <rick.denat...@gmail.com> wrote:
>> On Fri, Apr 16, 2010 at 8:34 PM, Me <chabg...@gmail.com> 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 actually inside it.  any ideas?
>>
>> StringIO#string

StringIO#string is a reference to the stringmethod of StringIO, this
is normal Ruby notation for talking about an instance method.

so

request.body.string


-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to