mod_ruby documents

Shugo Maeda <[email protected]> Fri, 03 Jun 2005 11:01:07 +0900
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi,

Curt Sampson wrote:
>>    http://modruby.net/en/index.rbx/mod_ruby/classes.html
>>
>> there's a 'gets' method on an Apache::Request object that, when
>> invoked with
>> nil, will return the entire body of the request. However, trying an
>> Apache.request.gets(nil) on a POST request throws:
>>
>> NoMethodError: private method `gets' called for
>> #<Apache::Request:0x82c73f0>
> 
> 
> So, basically the documentation is wrong, and that gets should not
> be there, and one should use read(num_bytes) instead (passing no arg
> to read the entire body), and one should do this before invoking
> Request.param (or probably any libapreq function, or any that would
> likely invoke Request.parse).

http://modruby.net/en/index.rbx/mod_ruby/classes.html is an old
document. Documents of mod_ruby are on Wiki now.
Please see http://modruby.net/en/doc/.
(I changed httpd.conf to redirect old documents to new documents.)

New documents are splited into classes.
If there is something wrong on documents, please fix it:)
If you inform it to this ML, I'll merge it to Japanese documents.

Thanks,
Shugo