However whenever I run this I get an error message:
undefined method `post_form’ for Net::HTTP:Class
I’ve included
require ‘net/http’
require ‘uri’
in my enviroment.rb
can anyone help?
post_form is in ruby 1.8.4 and not in 1.8.2 So to get that method you
need to upgrade your ruby install. This hjas come up a few times
because the docs got cross pollenated to look like post_form is in
1.8.2 but it is not.
Cheers-
-Ezra
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.