Hi,
On Dec 8, 2007 10:12 PM, doug
<ddjolley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> The Net::HTTP class has a post_form method. However, if I create an
> instance of that class (e.g.,
my_instance=Net::HTTP.new(''url'',port), I
> can''t seem to access the post_form method of the instance. (I
would
> expect that I would be able to access
''my_instance.post_form''). Can
> anyone please tell me what I am missing? Thanks for any input.
>> Net::HTTP.instance_methods.grep(/post/)
=> ["post", "post2", "request_post",
"enable_post_connection_check",
"enable_post_connection_check="]
>> Net::HTTP.methods.grep(/post/)
=> ["post_form"]
Which means that post_form is not an instance method of Net::HTTP but a
class method. However, there is an instace method Net::HTTP#post, which may
be what you''re looking for.
Regards,
Michael Guterl
--~--~---------~--~----~------------~-------~--~----~
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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---